16 using namespace magfieldparam;
41 edm::LogWarning(
"MagneticField|FieldOutsideValidity") <<
" Point " << gp <<
" is outside the validity region of PolyFit2DParametrizedMagneticField";
52 double cosphi =
cos(gp.
phi());
53 double sinphi =
sin(gp.
phi());
56 Br*sinphi + Bphi*cosphi,
62 double z = fabs(gp.
z());
65 if (z>350. || r>190 || z+2.5*r>670.)
return false;
T getParameter(std::string const &) const
GlobalVector inTeslaUnchecked(const GlobalPoint &gp) const
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
void GetField(double r, double z, double phi, double &Br, double &Bz, double &Bphi)
magfieldparam::BFit * theParam
virtual ~PolyFit2DParametrizedMagneticField()
Destructor.
Cos< T >::type cos(const T &t)
GlobalVector inTesla(const GlobalPoint &gp) const
Field value ad specified global point, in Tesla.
PolyFit2DParametrizedMagneticField(double bVal=3.8114)
bool isDefined(const GlobalPoint &gp) const
True if the point is within the region where the concrete field.
Global3DVector GlobalVector