15#include "FairLogger.h"
17#include "FairRuntimeDb.h"
22using std::setprecision;
81 LOG(warn) <<
"BmnFieldConst::BmnFieldConst: empty parameter container!";
90 fBx = fieldPar->
GetBx();
91 fBy = fieldPar->
GetBy();
92 fBz = fieldPar->
GetBz();
120 if ((bX == 0) && (bY == 0) && (bZ == 0)) fIsOff = kTRUE;
121 else fIsOff = kFALSE;
126 if (x < fXmin || x > fXmax || y < fYmin || y > fYmax || z < fZmin || z > fZmax) {
134 if (x < fXmin || x > fXmax || y < fYmin || y > fYmax || z < fZmin || z > fZmax) {
142 if (x < fXmin || x > fXmax || y < fYmin || y > fYmax || z < fZmin || z > fZmax) {
150 LOG(info) <<
"======================================================";
151 LOG(info) <<
"---- " << fTitle <<
" : " << fName;
153 LOG(info) <<
"---- Field type : constant";
154 if (fIsOff) LOG(info) <<
"---- Field is off ----";
156 LOG(info) <<
"---- Field regions : ";
157 LOG(info) <<
"---- x = " << setw(4) << fXmin <<
" to " << setw(4) << fXmax <<
" cm";
158 LOG(info) <<
"---- y = " << setw(4) << fYmin <<
" to " << setw(4) << fYmax <<
" cm";
159 LOG(info) <<
"---- z = " << setw(4) << fZmin <<
" to " << setw(4) << fZmax <<
" cm";
160 LOG(info) <<
"---- B = ( " << setprecision(4) << fBx <<
", " << fBy <<
", " << fBz <<
" ) kG";
161 LOG(info) <<
"======================================================";
166 TString MapName = GetName();
168 FairRun* fRun = FairRun::Instance();
169 FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
173 Par->setInputVersion(fRun->GetRunId(), 1);
void SetField(Double_t bX, Double_t bY, Double_t bZ)
virtual void Print(Option_t *) const
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
Bool_t IsFieldOff() const
void SetParameters(FairField *field)