24 #ifndef GFFIELDMANAGER_H 25 #define GFFIELDMANAGER_H 47 std::cerr <<
"Appareantly GFFieldManager hasnt been initialized with a correct GFAbsBField pointer -> abort" << std::endl;
55 std::cerr <<
"Appareantly GFFieldManager hasnt been instantiated yet, call getInstance() and init() before getFieldVal() -> abort" << std::endl;
59 std::cerr <<
"Appareantly GFFieldManager hasnt been initialized with a correct GFAbsBField pointer -> abort" << std::endl;
62 return fField->
get(x);
static GFFieldManager * fInstance
Generic Interface to magnetic fields in GENFIT.
static GFFieldManager * getInstance()
virtual TVector3 get(const TVector3 &) const =0
override this is you concrete implementation
static TVector3 getFieldVal(const TVector3 &x)
static GFAbsBField * fField
void init(GFAbsBField *b)
set the magntic field here. Magnetic field classes must be derived from GFAbsBField ...