35 #ifndef GFFIELDMANAGER_H 36 #define GFFIELDMANAGER_H 57 if (fField ==
nullptr) {
58 std::cerr <<
"Appareantly GFFieldManager hasnt been initialized with a correct GFAbsBField pointer -> abort" << std::endl;
66 if (fInstance ==
nullptr) {
67 std::cerr <<
"Appareantly GFFieldManager hasnt been instantiated yet, call getInstance() and init() before getFieldVal() -> abort" << std::endl;
70 if (fField ==
nullptr) {
71 std::cerr <<
"Appareantly GFFieldManager hasnt been initialized with a correct GFAbsBField pointer -> abort" << std::endl;
74 return fField->
get(x);
82 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.