6 #include "ERFieldConst.h" 8 #include "ERFieldPar.h" 37 Double_t xMax, Double_t yMin,
38 Double_t yMax, Double_t zMin,
39 Double_t zMax, Double_t bX,
40 Double_t bY, Double_t bZ)
70 cerr <<
"-W- ERFieldConst::ERFieldConst: empty parameter container!" 75 fXmin = fieldPar->GetXmin();
76 fXmax = fieldPar->GetXmax();
77 fYmin = fieldPar->GetYmin();
78 fYmax = fieldPar->GetYmax();
79 fZmin = fieldPar->GetZmin();
80 fZmax = fieldPar->GetZmax();
81 fBx = fieldPar->GetBx();
82 fBy = fieldPar->GetBy();
83 fBz = fieldPar->GetBz();
95 Double_t yMin, Double_t yMax,
96 Double_t zMin, Double_t zMax) {
116 if ( x < fXmin || x > fXmax ||
117 y < fYmin || y > fYmax ||
118 z < fZmin || z > fZmax )
return 0.;
124 Double_t ERFieldConst::GetBy(Double_t x, Double_t y, Double_t z) {
125 if ( x < fXmin || x > fXmax ||
126 y < fYmin || y > fYmax ||
127 z < fZmin || z > fZmax )
return 0.;
133 Double_t ERFieldConst::GetBz(Double_t x, Double_t y, Double_t z) {
134 if ( x < fXmin || x > fXmax ||
135 y < fYmin || y > fYmax ||
136 z < fZmin || z > fZmax )
return 0.;
143 cout <<
"======================================================" << endl;
144 cout <<
"---- " << fTitle <<
" : " << fName << endl;
145 cout <<
"----" << endl;
146 cout <<
"---- Field type : constant" << endl;
147 cout <<
"----" << endl;
148 cout <<
"---- Field regions : " << endl;
149 cout <<
"---- x = " << setw(4) <<
fXmin <<
" to " << setw(4)
150 << fXmax <<
" cm" << endl;
151 cout <<
"---- y = " << setw(4) << fYmin <<
" to " << setw(4)
152 << fYmax <<
" cm" << endl;
153 cout <<
"---- z = " << setw(4) << fZmin <<
" to " << setw(4)
154 << fZmax <<
" cm" << endl;
156 cout <<
"---- B = ( " <<
fBx <<
", " << fBy <<
", " << fBz <<
" ) kG" 158 cout <<
"======================================================" << endl;
virtual void Print(Option_t *="") const
void SetField(Double_t bX, Double_t bY, Double_t bZ)
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)