84 list->
add(
"Field Type", fType);
87 list->
add(
"Field min x", fXmin);
88 list->
add(
"Field max x", fXmax);
89 list->
add(
"Field min y", fYmin);
90 list->
add(
"Field max y", fYmax);
91 list->
add(
"Field min z", fZmin);
92 list->
add(
"Field max z", fZmax);
93 list->
add(
"Field Bx", fBx);
94 list->
add(
"Field By", fBy);
95 list->
add(
"Field Bz", fBz);
97 list->
add(
"Field Peak", fPeak);
98 list->
add(
"Field Middle", fMiddle);
100 list->
add(
"Field map name", fMapName);
101 list->
add(
"Field x position", fPosX);
102 list->
add(
"Field y position", fPosY);
103 list->
add(
"Field z position", fPosZ);
104 list->
add(
"Field scaling factor", fScale);
116 if (!list->
fill(
"Field Type", &fType))
120 if (!list->
fill(
"Field min x", &fXmin))
122 if (!list->
fill(
"Field max x", &fXmax))
124 if (!list->
fill(
"Field min y", &fYmin))
126 if (!list->
fill(
"Field max y", &fYmax))
128 if (!list->
fill(
"Field min z", &fZmin))
130 if (!list->
fill(
"Field max z", &fZmax))
132 if (!list->
fill(
"Field Bx", &fBx))
134 if (!list->
fill(
"Field By", &fBy))
136 if (!list->
fill(
"Field Bz", &fBz))
141 if (!list->
fill(
"Field Peak", &fPeak))
143 if (!list->
fill(
"Field Middle", &fMiddle))
148 if (!list->
fill(
"Field map name", mapName, 80))
151 if (!list->
fill(
"Field x position", &fPosX))
153 if (!list->
fill(
"Field y position", &fPosY))
155 if (!list->
fill(
"Field z position", &fPosZ))
157 if (!list->
fill(
"Field scaling factor", &fScale))
169 cerr <<
"-W- MyFieldPar::SetParameters: Empty field pointer!" << endl;
177 fBx = fieldConst->
GetBx();
178 fBy = fieldConst->
GetBy();
179 fBz = fieldConst->
GetBz();
187 fPosX = fPosY = fPosZ = fScale = 0.;
189 cerr <<
"-W- MyFieldPar::SetParameters: Unknown field type " << fType <<
"!" << endl;
190 fBx = fBy = fBz = 0.;
191 fXmin = fXmax = fYmin = fYmax = fZmin = fZmax = 0.;
193 fPosX = fPosY = fPosZ = fScale = 0.;
virtual Double_t GetBx(Double_t x, Double_t y, Double_t z)
void SetParameters(FairField *field)
const int kMaxFieldMapType
virtual void putParams(FairParamList *list)
ClassImp(FairEventBuilder)
Bool_t fill(const Text_t *, Text_t *, const Int_t)
virtual Bool_t getParams(FairParamList *list)
virtual Double_t GetBy(Double_t x, Double_t y, Double_t z)
virtual Double_t GetBz(Double_t x, Double_t y, Double_t z)