60 : TNamed(name,
"CBM Field Map Data")
61 , fType(map.GetType())
62 , fXmin(map.GetXmin())
63 , fXmax(map.GetXmax())
64 , fYmin(map.GetYmin())
65 , fYmax(map.GetYmax())
66 , fZmin(map.GetZmin())
67 , fZmax(map.GetZmax())
71 , fBx(new TArrayF(*(map.GetBx())))
72 , fBy(new TArrayF(*(map.GetBy())))
73 , fBz(new TArrayF(*(map.GetBz())))
76 if (map.GetScale() == 0.) { Fatal(
"CbmFieldMap",
"Zero scaling factor"); }
77 Double_t factor = map.GetScale() * 10.;
79 for (Int_t ix = 0; ix <
fNx; ix++) {
80 for (Int_t iy = 0; iy <
fNy; iy++) {
81 for (Int_t iz = 0; iz <
fNz; iz++) {
83 if (
fBx) (*fBx)[index] = (*fBx)[index] / factor;
84 if (
fBy) (*fBy)[index] = (*fBy)[index] / factor;
85 if (
fBz) (*fBz)[index] = (*fBz)[index] / factor;