46 if (global_field ==
this)
47 Fatal(
"~TVirtualMagField",
"Not allowed to delete a field once set global. \ 48 \n To delete the field call: TGeoGlobalMagField::Instance()->SetField(NULL)");
TVirtualMagField * GetField() const
static TGeoGlobalMagField * GetInstance()
Static getter that does not create the object.
Abstract class for magnetic field.
virtual ~TVirtualMagField()
Destructor. Unregisters the field.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.