PandaRoot
PndFieldAdaptor.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id$
4 //
5 // Description:
6 // Adapts a PndField to genfit GFAbsBFieldIfc
7 //
8 //
9 // Environment:
10 // Software developed for the PANDA Detector at FAIR.
11 //
12 // Author List:
13 // Sebastian Neubert TUM (original author)
14 //
15 // adapted by Alicia Sanchez for HYP purpose
16 //-----------------------------------------------------------
17 
18 #ifndef PNDFIELDADAPTOR_HH
19 #define PNDFIELDADAPTOR_HH
20 
21 // Base Class Headers ----------------
22 #include "GFAbsBField.h"
23 #include "TObject.h"
24 
25 // Collaborating Class Headers -------
26 #include <ostream> // remove if you do not need streaming op
27 
28 // Collaborating Class Declarations --
29 class FairField;
30 
31 class PndFieldAdaptor : public GFAbsBField, public TObject {
32  public:
33  // Constructors/Destructors ---------
34  PndFieldAdaptor() { fField = nullptr; }
35  PndFieldAdaptor(FairField *field);
36 
37  // Accessors -----------------------
38  TVector3 get(const TVector3 &) const;
39 
40  private:
41  // Private Data Members ------------
42  FairField *fField;
43 
44  // Private Methods -----------------
45 
46  public:
48 };
49 
50 #endif
51 
52 //--------------------------------------------------------------
53 // $Log$
54 //--------------------------------------------------------------
ClassDef(PndFieldAdaptor, 1)
Generic Interface to magnetic fields in GENFIT.
Definition: GFAbsBField.h:34