Go to the documentation of this file.
20 : theParam(new
BFit()) {
31 <<
" is outside the validity region of PolyFit2DParametrizedMagneticField";
40 double cosphi =
cos(
gp.phi());
41 double sinphi =
sin(
gp.phi());
43 return GlobalVector(Br * cosphi - Bphi * sinphi, Br * sinphi + Bphi * cosphi, Bz);
47 double z = fabs(
gp.z());
50 if (
z > 350. ||
r > 190 ||
z + 2.5 *
r > 670.)
magfieldparam::BFit * theParam
void GetField(double r, double z, double phi, double &Br, double &Bz, double &Bphi) const
GlobalVector inTeslaUnchecked(const GlobalPoint &gp) const override
bool isDefined(const GlobalPoint &gp) const override
True if the point is within the region where the concrete field.
Global3DVector GlobalVector
Log< level::Warning, false > LogWarning
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
PolyFit2DParametrizedMagneticField(double bVal=3.8114)
GlobalVector inTesla(const GlobalPoint &gp) const override
Field value ad specified global point, in Tesla.
~PolyFit2DParametrizedMagneticField() override
Destructor.