CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MagneticField.cc
Go to the documentation of this file.
1 
7 
9 
10 MagneticField::MagneticField(const MagneticField& orig) = default;
11 
13 
15  auto const at0z = inTesla(GlobalPoint(0.f, 0.f, 0.f)).z();
16  theNominalValue = int(at0z * 10.f + 0.5f);
17  theInverseBzAtOriginInGeV = 1.f / (at0z * 2.99792458e-3f);
18 }
float theInverseBzAtOriginInGeV
Definition: MagneticField.h:61
virtual ~MagneticField()
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
T z() const
Definition: PV3DBase.h:61
void setNominalValue()