9 #include <geometry/bfieldmap/BFieldComponentConstant.h>
14 ROOT::Math::XYZVector BFieldComponentConstant::calculate(
const ROOT::Math::XYZVector& point)
const
16 if ((maxRadius4BField > 0.0 && maxRadius4BField < point.Rho()) ||
17 (point.Z() < minZ4BField || point.Z() > maxZ4BField))
return ROOT::Math::XYZVector(0, 0, 0);
18 return ROOT::Math::XYZVector(m_magneticField[0], m_magneticField[1], m_magneticField[2]);
22 void BFieldComponentConstant::setMagneticFieldValues(
double x,
double y,
double z,
double rmax,
double zmin,
double zmax)
24 m_magneticField[0] = x;
25 m_magneticField[1] = y;
26 m_magneticField[2] = z;
27 maxRadius4BField = rmax;
Abstract base class for different kinds of events.