10 #include <framework/geometry/B2Vector3.h>
11 #include <framework/dbobjects/MagneticFieldComponent.h>
12 #include <framework/gearbox/Unit.h>
74 if (c->isExclusive())
return c->getField(pos);
76 field += c->getField(pos);
Abstract base class for BField components.
MagneticField()
Empty Constructor.
std::vector< MagneticFieldComponent * > m_components
Magnetic field components to evaluate the field.
ClassDef(MagneticField, 1)
ROOT dictionary definition.
void addComponent(MagneticFieldComponent *component)
Add a new component to the magnetic field.
B2Vector3D getFieldInTesla(const B2Vector3D &pos) const
Convenience function to get the field directly in Tesla.
~MagneticField()
Delete all components.
MagneticField(MagneticField &&other) noexcept
But allow move construction.
MagneticField(const MagneticField &)=delete
Disallow copying the magnetic field.
static const double T
[tesla]
B2Vector3D getField(const B2Vector3D &pos) const
Calculate the magnetic field at a given position.
Abstract base class for different kinds of events.