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