 |
Belle II Software
release-05-02-19
|
12 #include <framework/geometry/B2Vector3.h>
13 #include <framework/dbobjects/MagneticFieldComponent.h>
14 #include <framework/gearbox/Unit.h>
35 class MagneticField:
public TObject {
76 if (c->isExclusive())
return c->getField(pos);
78 field += c->getField(pos);
~MagneticField()
Delete all components.
static const double T
[tesla]
Abstract base class for different kinds of events.
B2Vector3D getFieldInTesla(const B2Vector3D &pos) const
Convenience function to get the field directly in Tesla.
std::vector< MagneticFieldComponent * > m_components
Magnetic field components to evaluate the field.
B2Vector3D getField(const B2Vector3D &pos) const
Calculate the magnetic field at a given position.
void addComponent(MagneticFieldComponent *component)
Add a new component to the magnetic field.
MagneticField()
Empty Constructor.
ClassDef(MagneticField, 1)
ROOT dictionary definition.