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