![]() |
Belle II Software
release-08-02-04
|
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. More... | |
| 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. More... | |
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. More... | |
| 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.
|
static |
Static method to get a reference to the BFieldMap instance.
Definition at line 15 of file BFieldMap.cc.