11 #ifndef ROOT_TGeoGlobalMagField
12 #define ROOT_TGeoGlobalMagField
18 #ifndef ROOT_TVirtualMagField
virtual void Field(const Double_t *x, Double_t *B)=0
static TGeoGlobalMagField * Instance()
Returns always a valid static pointer to the field manager.
void Field(const Double_t *x, Double_t *B)
TVirtualMagField * GetField() const
#define ClassDef(name, id)
virtual ~TGeoGlobalMagField()
Global field destructor.
static TGeoGlobalMagField * fgInstance
static TGeoGlobalMagField * GetInstance()
Static getter that does not create the object.
TGeoGlobalMagField & operator=(const TGeoGlobalMagField &)
TVirtualMagField * fField
Mother of all ROOT objects.
void Lock()
Locks the global magnetic field if this is set. Cannot be unlocked.
void SetField(TVirtualMagField *field)
Field setter. Deletes previous field if any. Acts only if fLock=kFALSE.