11 #ifndef ROOT_TGeoGlobalMagField 12 #define ROOT_TGeoGlobalMagField 18 #ifndef ROOT_TVirtualMagField
virtual void Field(const Double_t *x, Double_t *B)=0
TVirtualMagField * GetField() const
static TGeoGlobalMagField * Instance()
Returns always a valid static pointer to the field manager.
void Field(const Double_t *x, Double_t *B)
TGeoGlobalMagField()
Global field default constructor.
#define ClassDef(name, id)
virtual ~TGeoGlobalMagField()
Global field destructor.
Global magnetic field manager.
static TGeoGlobalMagField * GetInstance()
Static getter that does not create the object.
static TGeoGlobalMagField * fgInstance
TGeoGlobalMagField & operator=(const TGeoGlobalMagField &)
Abstract class for magnetic field.
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.