Go to the documentation of this file.
11 #include <FairField.h>
12 #include <FairParGenericSet.h>
13 #include <FairParamList.h>
27 : FairParGenericSet(name, title, context)
43 , fDistortionFilename(
"")
65 , fDistortionFilename(
"")
80 list->add(
"Field Type",
fType);
83 list->add(
"Field min x",
fXmin);
84 list->add(
"Field max x",
fXmax);
85 list->add(
"Field min y",
fYmin);
86 list->add(
"Field max y",
fYmax);
87 list->add(
"Field min z",
fZmin);
88 list->add(
"Field max z",
fZmax);
89 list->add(
"Field Bx",
fBx);
90 list->add(
"Field By",
fBy);
91 list->add(
"Field Bz",
fBz);
95 list->add(
"Field map name",
fMapName);
96 list->add(
"Field x position",
fPosX);
97 list->add(
"Field y position",
fPosY);
98 list->add(
"Field z position",
fPosZ);
99 list->add(
"Field scaling factor",
fScale);
103 list->add(
"Field name of parent field",
fParentName.Data());
114 if (!list)
return kFALSE;
116 if (!list->fill(
"Field Type", &
fType))
return kFALSE;
119 if (!list->fill(
"Field min x", &
fXmin))
return kFALSE;
120 if (!list->fill(
"Field max x", &
fXmax))
return kFALSE;
121 if (!list->fill(
"Field min y", &
fYmin))
return kFALSE;
122 if (!list->fill(
"Field max y", &
fYmax))
return kFALSE;
123 if (!list->fill(
"Field min z", &
fZmin))
return kFALSE;
124 if (!list->fill(
"Field max z", &
fZmax))
return kFALSE;
125 if (!list->fill(
"Field Bx", &
fBx))
return kFALSE;
126 if (!list->fill(
"Field By", &
fBy))
return kFALSE;
127 if (!list->fill(
"Field Bz", &
fBz))
return kFALSE;
132 if (!list->fill(
"Field map name", mapName, 80))
return kFALSE;
134 if (!list->fill(
"Field x position", &
fPosX))
return kFALSE;
135 if (!list->fill(
"Field y position", &
fPosY))
return kFALSE;
136 if (!list->fill(
"Field z position", &
fPosZ))
return kFALSE;
137 if (!list->fill(
"Field scaling factor", &
fScale))
return kFALSE;
142 if (!list->fill(
"Field map distortion filename", tmp,
kMaxLen))
146 if (!list->fill(
"Field name of parent field", tmp,
kMaxLen))
149 if (!list->fill(
"Field type of parent field", &
fTypeOfParent))
163 cerr <<
"-W- CbmFieldPar::SetParameters: Empty field pointer!" << endl;
167 fType = field->GetType();
205 cerr <<
"-W- CbmFieldPar::SetParameters: Unknown field type " <<
fType
const int kMaxFieldMapType
TString fDistortionFilename
Double_t GetPositionY() const
Double_t GetPositionZ() const
void SetParameters(FairField *field)
virtual Double_t GetBx(Double_t x, Double_t y, Double_t z)
virtual Double_t GetBz(Double_t x, Double_t y, Double_t z)
virtual void putParams(FairParamList *list)
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
virtual Bool_t getParams(FairParamList *list)
Double_t GetScale() const
virtual Double_t GetBy(Double_t x, Double_t y, Double_t z)
Double_t GetPositionX() const