23 #ifndef genfit_AbsBField_h
24 #define genfit_AbsBField_h
49 virtual TVector3
get(
const TVector3& position)
const = 0;
56 virtual void get(
const double& posX,
const double& posY,
const double& posZ,
double& Bx,
double& By,
double& Bz)
const {
const TVector3& B(this->
get(TVector3(posX, posY, posZ))); Bx = B.X(); By = B.Y(); Bz = B.Z(); }
Abstract Interface to magnetic fields in GENFIT.
virtual TVector3 get(const TVector3 &position) const =0
Get the magneticField [kGauss] at position.
virtual void get(const double &posX, const double &posY, const double &posZ, double &Bx, double &By, double &Bz) const
Get the magneticField [kGauss] at position.
Defines for I/O streams used for error and debug printing.