24constexpr Double_t
cm = 1;
25constexpr Double_t
m = 100 *
cm;
37 Int_t orientation, Double_t Btube)
50 cerr <<
"-W- ShipBellField::ShipBellField: empty parameter container!"
78 Double_t zlocal = fabs(z -
fMiddle) / 100.;
85 if ((fabs(x) < 2.7 *
m) && (fabs(y) <
fBtube + 0.2 *
m)) {
87 bx = 0.14361 * exp(-0.5 * pow((zlocal - 0.45479E-01) / 2.5046, 2.));
88 }
else if (zlocal < 11.9) {
89 bx = 0.19532 - 0.61512E-01 * zlocal + 0.68447E-02 * pow(zlocal, 2.) -
90 0.25672E-03 * pow(zlocal, 3.);
115 Double_t zlocal = (z -
fMiddle) / 100.;
116 by =
fPeak / (1. + pow(fabs(zlocal) / 2.1, 6.));
129 cout <<
"======================================================" << endl;
130 cout <<
"---- " << fTitle <<
" : " << fName << endl;
131 cout <<
"----" << endl;
132 cout <<
"---- Field type : Bell" << endl;
133 cout <<
"----" << endl;
135 cout <<
"---- Peak field : " <<
fPeak <<
" kG" << endl;
136 cout <<
"---- Middle (z centre) : " <<
fMiddle <<
" cm" << endl;
137 cout <<
"---- Btube : " <<
fBtube <<
" cm" << endl;
138 cout <<
"---- Orientation : " <<
fOrient << endl;
139 cout <<
"---- Include target : " << (
fInclTarget ?
"yes" :
"no") << endl;
140 cout <<
"======================================================" << endl;
constexpr Double_t kilogauss
void Print(Option_t *="") const override
Double_t GetBz(Double_t x, Double_t y, Double_t z) override
~ShipBellField() override
Double_t GetBx(Double_t x, Double_t y, Double_t z) override
void IncludeTarget(Double_t xy, Double_t z, Double_t l)
Double_t GetBy(Double_t x, Double_t y, Double_t z) override
Double_t GetMiddle() const
Double_t GetBtube() const