32 :TNamed(mapName,
"PND Field Map Data"),
56 :TNamed(name,
"PND Field Map Data"),
57 fType( map.GetType()),
58 fXmin( map.GetXmin()),
59 fXmax( map.GetXmax()),
60 fYmin( map.GetYmin()),
61 fYmax( map.GetYmax()),
62 fZmin( map.GetZmin()),
63 fZmax( map.GetZmax()),
64 fUnit( map.GetUnit()),
68 fBx( new TArrayF(*(map.GetBx()))),
69 fBy( new TArrayF(*(map.GetBy()))),
70 fBz( new TArrayF(*(map.GetBz())))
75 Double_t factor = map.
GetScale() * 10.;
77 for (Int_t ix=0; ix<
fNx; ix++) {
78 for (Int_t iy=0; iy<
fNy; iy++) {
79 for (Int_t iz=0; iz<
fNz; iz++) {
80 index = ix*fNy*fNz + iy*fNz + iz;
81 if (
fBx ) (*fBx)[index] = (*fBx)[index] / factor;
82 if (
fBy ) (*fBy)[index] = (*fBy)[index] / factor;
83 if (
fBz ) (*fBz)[index] = (*fBz)[index] / factor;