Belle II Software development
|
This class represents the magnetic field of the Belle II detector. More...
#include <BFieldMap.h>
Public Member Functions | |
template<class BFIELDCOMP > | |
BFIELDCOMP & | addBFieldComponent () |
Adds a new BField component to the Belle II magnetic field. | |
void | initialize () |
Initialize the magnetic field after adding all components. | |
void | clear () |
Clear the existing components. | |
Static Public Member Functions | |
static BFieldMap & | Instance () |
Static method to get a reference to the BFieldMap instance. | |
Protected Attributes | |
std::list< BFieldComponentAbs * > | m_components |
The components of the magnetic field. | |
Private Member Functions | |
ROOT::Math::XYZVector | getBField (const ROOT::Math::XYZVector &point) const |
Returns the magnetic field of the Belle II detector at the specified space point. | |
BFieldMap () | |
The constructor is hidden to avoid that someone creates an instance of this class. | |
BFieldMap (const BFieldMap &) | |
Disable/Hide the copy constructor. | |
BFieldMap & | operator= (const BFieldMap &) |
Disable/Hide the copy assignment operator. | |
virtual | ~BFieldMap () |
The destructor of the BFieldMap class. | |
Private Attributes | |
bool | m_isMapInitialized |
If false the map hasn't been initialized yet. | |
Friends | |
struct | std::default_delete< BFieldMap > |
allow destruction of instance | |
class | BFieldFrameworkInterface |
only allow lookup by framework payload interface from now on | |
This class represents the magnetic field of the Belle II detector.
Its main method is getBField() which returns the Bfield vector at the specified space point.
It is designed as a singleton.
Definition at line 30 of file BFieldMap.h.
|
private |
The constructor is hidden to avoid that someone creates an instance of this class.
Definition at line 44 of file BFieldMap.cc.
|
privatevirtual |
The destructor of the BFieldMap class.
Definition at line 49 of file BFieldMap.cc.
void clear | ( | ) |
Clear the existing components.
Definition at line 33 of file BFieldMap.cc.
void initialize | ( | ) |
Initialize the magnetic field after adding all components.
Definition at line 21 of file BFieldMap.cc.
|
static |
Static method to get a reference to the BFieldMap instance.
Definition at line 15 of file BFieldMap.cc.
|
friend |
only allow lookup by framework payload interface from now on
Definition at line 91 of file BFieldMap.h.
|
friend |
allow destruction of instance
Definition at line 86 of file BFieldMap.h.
|
protected |
The components of the magnetic field.
Definition at line 69 of file BFieldMap.h.
|
private |
If false the map hasn't been initialized yet.
Definition at line 74 of file BFieldMap.h.