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