 |
Belle II Software
release-05-02-19
|
13 #include <framework/dbobjects/MagneticFieldComponent.h>
21 class MagneticFieldComponentConstant final:
public MagneticFieldComponent {
37 std::numeric_limits<float>::infinity(), -std::numeric_limits<float>::infinity(),
38 std::numeric_limits<float>::infinity()) {}
42 const float r = pos.Perp();
43 const float z = pos.Z();
float m_maxR
maximal R=sqrt(x^2+y^2) for which this field is present
ClassDefOverride(MagneticFieldComponentConstant, 1)
ROOT dictionary.
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
Abstract base class for different kinds of events.
float m_maxZ
maximal Z for which this field is present
Abstract base class for BField components.
float m_minR
minimal R=sqrt(x^2+y^2) for which this field is present
B2Vector3D m_field
magnetic field strength
Describe one component of the Geometry.
bool inside(const B2Vector3D &pos) const override
return whether we are inside the active region for this component
MagneticFieldComponent(bool exclusive)
Constructor.
float m_minZ
minimal Z for which this field is present