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