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