5 #include <CLHEP/Units/SystemOfUnits.h>
22 get(x, y, z, Bx, By, Bz);
24 return TVector3(Bx, By, Bz);
27 void GFField::get(
const double& x,
const double& y,
const double& z,
double& Bx,
double& By,
double& Bz)
const
37 const double Point[] = {x*CLHEP::cm, y*CLHEP::cm, z*CLHEP::cm, 0.};
39 for(
int i = 0; i < 6; ++i)
45 Bx = _scale*Bfield[0]/CLHEP::kilogauss;
46 By = _scale*Bfield[1]/CLHEP::kilogauss;
47 Bz = _scale*Bfield[2]/CLHEP::kilogauss;
TVector3 get(const TVector3 &pos) const
transient DST object for field storage and access
GFField(const PHField *field)
virtual void GetFieldValue(const double Point[4], double *Bfield) const =0