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