11 #include "FairRuntimeDb.h"
77 cerr <<
"-W- PndConstField::PndConstField: empty parameter container!"<< endl;
130 if ( x < fXmin || x >
fXmax ||
131 y < fYmin || y >
fYmax ||
132 z < fZmin || z >
fZmax )
return 0.;
141 if ( x < fXmin || x >
fXmax ||
142 y < fYmin || y >
fYmax ||
143 z < fZmin || z >
fZmax )
return 0.;
152 if ( x < fXmin || x >
fXmax ||
153 y < fYmin || y >
fYmax ||
154 z < fZmin || z >
fZmax )
return 0.;
165 if ( point [0] <
fXmin || point [0] >
fXmax ||
168 bField[0]=0; bField[1]=0; bField[2]=0;
171 bField[0]=
fBx; bField[1]=
fBy; bField[2]=
fBz;
177 cout <<
"======================================================" << endl;
178 cout <<
"---- " << fTitle <<
" : " << fName << endl;
179 cout <<
"----" << endl;
180 cout <<
"---- Field type : constant" << endl;
181 cout <<
"----" << endl;
182 cout <<
"---- Field regions : " << endl;
183 cout <<
"---- x = " << setw(4) <<
fXmin <<
" to " << setw(4)
184 <<
fXmax <<
" cm" << endl;
185 cout <<
"---- y = " << setw(4) <<
fYmin <<
" to " << setw(4)
186 <<
fYmax <<
" cm" << endl;
187 cout <<
"---- z = " << setw(4) <<
fZmin <<
" to " << setw(4)
188 <<
fZmax <<
" cm" << endl;
190 cout <<
"---- B = ( " <<
fBx <<
", " <<
fBy <<
", " <<
fBz <<
" ) kG"
192 cout <<
"======================================================" << endl;
200 FairRun *
fRun=FairRun::Instance();
201 FairRuntimeDb *
rtdb=fRun->GetRuntimeDb();
204 Par->setInputVersion(fRun->GetRunId(),1);
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
void SetField(Double_t bX, Double_t bY, Double_t bZ)
PndMultiFieldPar * fieldPar
void SetParameters(FairField *field)
virtual void GetBxyz(const Double_t point[3], Double_t *bField)