33 : TNamed(mapName,
"CBM Field Map Data")
52 : TNamed(name,
"CBM Field Map Data")
53 , fType(map.GetType())
54 , fXmin(map.GetXmin())
55 , fXmax(map.GetXmax())
56 , fYmin(map.GetYmin())
57 , fYmax(map.GetYmax())
58 , fZmin(map.GetZmin())
59 , fZmax(map.GetZmax())
63 , fBx(new TArrayF(*(map.GetBx())))
64 , fBy(new TArrayF(*(map.GetBy())))
65 , fBz(new TArrayF(*(map.GetBz()))) {
67 if (map.
GetScale() == 0.) { Fatal(
"CbmFieldMap",
"Zero scaling factor"); }
68 Double_t factor = map.
GetScale() * 10.;
70 for (Int_t ix = 0; ix <
fNx; ix++) {
71 for (Int_t iy = 0; iy <
fNy; iy++) {
72 for (Int_t iz = 0; iz <
fNz; iz++) {
74 if (
fBx) (*fBx)[index] = (*fBx)[index] / factor;
75 if (
fBy) (*fBy)[index] = (*fBy)[index] / factor;
76 if (
fBz) (*fBz)[index] = (*fBz)[index] / factor;