11#ifndef ROOT_TGeoGlobalMagField
12#define ROOT_TGeoGlobalMagField
#define ClassDef(name, id)
Global magnetic field manager.
TGeoGlobalMagField(const TGeoGlobalMagField &)=delete
virtual ~TGeoGlobalMagField()
Global field destructor.
TVirtualMagField * fField
void SetField(TVirtualMagField *field)
Field setter. Deletes previous field if any. Acts only if fLock=kFALSE.
void Field(const Double_t *x, Double_t *B)
TGeoGlobalMagField & operator=(const TGeoGlobalMagField &)=delete
TVirtualMagField * GetField() const
TGeoGlobalMagField()
Global field default constructor.
void Lock()
Locks the global magnetic field if this is set. Cannot be unlocked.
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