11#include <framework/dbobjects/MagneticFieldComponent.h>
35 std::numeric_limits<float>::infinity(), -
std::numeric_limits<float>::infinity(),
36 std::numeric_limits<float>::infinity()) {}
38 bool inside(
const ROOT::Math::XYZVector& pos)
const override
40 const float r = pos.Rho();
41 const float z = pos.Z();
45 ROOT::Math::XYZVector
getField(__attribute((unused))
const ROOT::Math::XYZVector& pos)
const override {
return m_field; }
Describe one component of the Geometry.
bool inside(const ROOT::Math::XYZVector &pos) const override
return whether we are inside the active region for this component
MagneticFieldComponentConstant(const ROOT::Math::XYZVector &field)
constructor for unlimited field
ROOT::Math::XYZVector getField(__attribute((unused)) const ROOT::Math::XYZVector &pos) const override
return the field assuming we are inside the active region as returned by inside()
ClassDefOverride(MagneticFieldComponentConstant, 2)
ROOT dictionary.
float m_maxR
maximal R=sqrt(x^2+y^2) for which this field is present
float m_maxZ
maximal Z for which this field is present
MagneticFieldComponentConstant()
empty constructor for ROOT
ROOT::Math::XYZVector m_field
magnetic field strength
MagneticFieldComponentConstant(const ROOT::Math::XYZVector &field, float minR, float maxR, float minZ, float maxZ)
full constructor
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.