5 #include "G4Mag_UsualEqRhs.hh"
7 #include "CLHEP/Units/GlobalSystemOfUnits.h"
12 : G4MagneticField(), theCMSMagneticField(f), theDelta(d)
14 for(
int i=0;
i<3; ++
i) {
28 static const float lunit = (float)(1.0/CLHEP::cm);
29 GlobalPoint ggg((
float)(xyz[0])*lunit,(
float)(xyz[1])*lunit,(
float)(xyz[2])*lunit);
32 static const float btesla = (float)CLHEP::tesla;
33 oldb[0] = (G4double)(v.
x()*btesla);
34 oldb[1] = (G4double)(v.
y()*btesla);
35 oldb[2] = (G4double)(v.
z()*btesla);
const MagneticField * theCMSMagneticField
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
Abs< T >::type abs(const T &t)
virtual void GetFieldValue(const G4double p[4], G4double b[3]) const
Field(const MagneticField *f, double d)