6 #include <phfield/PHField.h>
10 #include <CLHEP/Units/SystemOfUnits.h>
129 get(
x,
y,
z, Bx, By,
Bz);
130 return TVector3(Bx, By, Bz);
133 void Field::get(
const double&
x,
const double&
y,
const double&
z,
double& Bx,
double& By,
double&
Bz)
const
138 double Bfield[] = {std::numeric_limits<double>::signaling_NaN(),
139 std::numeric_limits<double>::signaling_NaN(),
140 std::numeric_limits<double>::signaling_NaN(),
141 std::numeric_limits<double>::signaling_NaN(),
142 std::numeric_limits<double>::signaling_NaN(),
143 std::numeric_limits<double>::signaling_NaN()};
147 Bx = Bfield[0] / CLHEP::kilogauss;
148 By = Bfield[1] / CLHEP::kilogauss;
149 Bz = Bfield[2] / CLHEP::kilogauss;