14#include "TVirtualMC.h"
24 get(pos.X(), pos.Y(), pos.Z(), bx, by, bz);
25 TVector3 field_(bx, by, bz);
30 double& Bx,
double& By,
double& Bz)
const {
31 Double_t X[3] = {x, y, z};
32 Double_t
B[3] = {Bx, By, Bz};
34 cout <<
"no Field Manager instantiated" << endl;
38 gMC->GetMagField()->Field(X,
B);
virtual void Field(const Double_t *position, Double_t *B)
TVector3 get(const TVector3 &pos) const
return value at position