16#include <FairParGenericSet.h>
17#include <FairParamList.h>
29 : FairParGenericSet(name, title, context)
45 , fDistortionFilename(
"")
69 , fDistortionFilename(
"")
87 list->add(
"Field Type",
fType);
90 list->add(
"Field min x",
fXmin);
91 list->add(
"Field max x",
fXmax);
92 list->add(
"Field min y",
fYmin);
93 list->add(
"Field max y",
fYmax);
94 list->add(
"Field min z",
fZmin);
95 list->add(
"Field max z",
fZmax);
96 list->add(
"Field Bx",
fBx);
97 list->add(
"Field By",
fBy);
98 list->add(
"Field Bz",
fBz);
102 list->add(
"Field map name",
fMapName);
103 list->add(
"Field x position",
fPosX);
104 list->add(
"Field y position",
fPosY);
105 list->add(
"Field z position",
fPosZ);
106 list->add(
"Field scaling factor",
fScale);
110 list->add(
"Field name of parent field",
fParentName.Data());
122 if (!list)
return kFALSE;
124 if (!list->fill(
"Field Type", &
fType))
return kFALSE;
127 if (!list->fill(
"Field min x", &
fXmin))
return kFALSE;
128 if (!list->fill(
"Field max x", &
fXmax))
return kFALSE;
129 if (!list->fill(
"Field min y", &
fYmin))
return kFALSE;
130 if (!list->fill(
"Field max y", &
fYmax))
return kFALSE;
131 if (!list->fill(
"Field min z", &
fZmin))
return kFALSE;
132 if (!list->fill(
"Field max z", &
fZmax))
return kFALSE;
133 if (!list->fill(
"Field Bx", &
fBx))
return kFALSE;
134 if (!list->fill(
"Field By", &
fBy))
return kFALSE;
135 if (!list->fill(
"Field Bz", &
fBz))
return kFALSE;
140 if (!list->fill(
"Field map name", mapName, 80))
return kFALSE;
142 if (!list->fill(
"Field x position", &
fPosX))
return kFALSE;
143 if (!list->fill(
"Field y position", &
fPosY))
return kFALSE;
144 if (!list->fill(
"Field z position", &
fPosZ))
return kFALSE;
145 if (!list->fill(
"Field scaling factor", &
fScale))
return kFALSE;
150 if (!list->fill(
"Field map distortion filename", tmp,
kMaxLen))
return kFALSE;
153 if (!list->fill(
"Field name of parent field", tmp,
kMaxLen))
return kFALSE;
155 if (!list->fill(
"Field type of parent field", &
fTypeOfParent))
return kFALSE;
169 cerr <<
"-W- CbmFieldPar::SetParameters: Empty field pointer!" << endl;
173 fType = field->GetType();
209 cerr <<
"-W- CbmFieldPar::SetParameters: Unknown field type " <<
fType <<
"!" << endl;
ClassImp(CbmConverterManager)
const int kMaxFieldMapType
virtual Double_t GetBx(Double_t x, Double_t y, Double_t z)
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)
Double_t GetPositionY() const
Double_t GetPositionZ() const
Double_t GetPositionX() const
Double_t GetScale() const
TString fDistortionFilename
virtual void putParams(FairParamList *list)
virtual Bool_t getParams(FairParamList *list)
void SetParameters(FairField *field)