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;
static GFFieldManager * fInstance
process_name opflash particleana ie x
BEGIN_PROLOG could also be cerr
virtual TVector3 get(const TVector3 &) const =0
override this is you concrete implementation
static GFFieldManager * getInstance()
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 ...