9 #include <geometry/bfieldmap/BFieldMap.h>
10 #include <framework/logging/Logger.h>
17 static std::unique_ptr<BFieldMap> instance(
new BFieldMap());
21 void BFieldMap::initialize()
23 if (!m_isMapInitialized) {
28 m_isMapInitialized =
true;
29 B2DEBUG(10,
"The magnetic field map has been initialized.");
33 void BFieldMap::clear()
35 m_isMapInitialized =
false;
36 for (
auto ptr : m_components)
delete ptr;
44 BFieldMap::BFieldMap() : m_isMapInitialized(false)
The BFieldComponentAbs class.
This class represents the magnetic field of the Belle II detector.
std::list< BFieldComponentAbs * > m_components
The components of the magnetic field.
virtual ~BFieldMap()
The destructor of the BFieldMap class.
bool m_isMapInitialized
If false the map hasn't been initialized yet.
Abstract base class for different kinds of events.