 |
Belle II Software
release-05-01-25
|
11 #include <geometry/bfieldmap/BFieldMap.h>
12 #include <framework/logging/Logger.h>
19 static std::unique_ptr<BFieldMap> instance(
new BFieldMap());
23 void BFieldMap::initialize()
25 if (!m_isMapInitialized) {
30 m_isMapInitialized =
true;
31 B2DEBUG(10,
"The magnetic field map has been initialized.");
35 void BFieldMap::clear()
37 m_isMapInitialized =
false;
38 for (
auto ptr : m_components)
delete ptr;
46 BFieldMap::BFieldMap() : m_isMapInitialized(false)
bool m_isMapInitialized
If false the map hasn't been initialized yet.
This class represents the magnetic field of the Belle II detector.
void initialize()
Initialize the magnetic field after adding all components.
Abstract base class for different kinds of events.
virtual ~BFieldMap()
The destructor of the BFieldMap class.
The BFieldComponentAbs class.
std::list< BFieldComponentAbs * > m_components
The components of the magnetic field.