11 #include <framework/dbobjects/MagneticFieldComponent.h>
35 std::numeric_limits<float>::infinity(), -std::numeric_limits<float>::infinity(),
36 std::numeric_limits<float>::infinity()) {}
40 const float r = pos.Perp();
41 const float z = pos.Z();
Describe one component of the Geometry.
float m_maxR
maximal R=sqrt(x^2+y^2) for which this field is present
bool inside(const B2Vector3D &pos) const override
return whether we are inside the active region for this component
float m_maxZ
maximal Z for which this field is present
B2Vector3D getField(__attribute((unused)) const B2Vector3D &pos) const override
return the field assuming we are inside the active region as returned by inside()
MagneticFieldComponentConstant()
empty constructor for ROOT
MagneticFieldComponentConstant(const B2Vector3D &field)
constructor for unlimited field
ClassDefOverride(MagneticFieldComponentConstant, 1)
ROOT dictionary.
MagneticFieldComponentConstant(const B2Vector3D &field, float minR, float maxR, float minZ, float maxZ)
full constructor
B2Vector3D m_field
magnetic field strength
float m_minZ
minimal Z for which this field is present
float m_minR
minimal R=sqrt(x^2+y^2) for which this field is present
Abstract base class for BField components.
Abstract base class for different kinds of events.