23 #ifndef GFFIELDMANAGER_H 24 #define GFFIELDMANAGER_H 47 std::cerr <<
"Appareantly GFFieldManager hasnt been initialized with a correct GFAbsBField " 57 if (fInstance == NULL) {
58 std::cerr <<
"Appareantly GFFieldManager hasnt been instantiated yet, call getInstance() " 59 "and init() before getFieldVal() -> abort" 64 std::cerr <<
"Appareantly GFFieldManager hasnt been initialized with a correct GFAbsBField " 69 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 ...