#include <ShipConstField.h>
|
| | ShipConstField () |
| | ShipConstField (const char *name, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax, Double_t bX, Double_t bY, Double_t bZ) |
| | ShipConstField (ShipFieldPar *fieldPar) |
| | ~ShipConstField () override |
| 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) |
| Double_t | GetBx (Double_t x, Double_t y, Double_t z) override |
| Double_t | GetBy (Double_t x, Double_t y, Double_t z) override |
| Double_t | GetBz (Double_t x, Double_t y, Double_t z) override |
| void | GetFieldValue (const Double_t point[3], Double_t *bField) override |
| Double_t | GetXmin () const |
| Double_t | GetXmax () const |
| Double_t | GetYmin () const |
| Double_t | GetYmax () const |
| Double_t | GetZmin () const |
| Double_t | GetZmax () const |
| Double_t | GetBx () const |
| Double_t | GetBy () const |
| Double_t | GetBz () const |
| void | Print (Option_t *="") const override |
Definition at line 25 of file ShipConstField.h.
◆ ShipConstField() [1/3]
| ShipConstField::ShipConstField |
( |
| ) |
|
Default constructor
Definition at line 23 of file ShipConstField.cxx.
24 : FairField(),
34 fType = 0;
35}
◆ ShipConstField() [2/3]
| ShipConstField::ShipConstField |
( |
const char * | name, |
|
|
Double_t | xMin, |
|
|
Double_t | xMax, |
|
|
Double_t | yMin, |
|
|
Double_t | yMax, |
|
|
Double_t | zMin, |
|
|
Double_t | zMax, |
|
|
Double_t | bX, |
|
|
Double_t | bY, |
|
|
Double_t | bZ ) |
|
explicit |
Standard constructor
- Parameters
-
| name | Object name |
| xMin,xMax | x region of field (global coordinates) |
| yMin,yMax | y region of field (global coordinates) |
| zMin,zMax | z region of field (global coordinates) |
| bX,bY,bZ | Field values [kG] |
Definition at line 39 of file ShipConstField.cxx.
43 : FairField(name),
53 fType = 0;
54}
◆ ShipConstField() [3/3]
Constructor from ShipFieldPar
Definition at line 58 of file ShipConstField.cxx.
59 : FairField(),
69 if (!fieldPar) {
70 cerr << "-W- ShipConstField::ShipConstField: empty parameter container!"
71 << endl;
72 fType = 0;
73 } else {
84 }
85}
◆ ~ShipConstField()
| ShipConstField::~ShipConstField |
( |
| ) |
|
|
overridedefault |
◆ ClassDefOverride()
◆ GetBx() [1/2]
| Double_t ShipConstField::GetBx |
( |
| ) |
const |
|
inline |
◆ GetBx() [2/2]
| Double_t ShipConstField::GetBx |
( |
Double_t | x, |
|
|
Double_t | y, |
|
|
Double_t | z ) |
|
override |
Get components of field at a given point
- Parameters
-
| x,y,z | Point coordinates [cm] |
Definition at line 114 of file ShipConstField.cxx.
114 {
117 return 0.;
119}
◆ GetBy() [1/2]
| Double_t ShipConstField::GetBy |
( |
| ) |
const |
|
inline |
◆ GetBy() [2/2]
| Double_t ShipConstField::GetBy |
( |
Double_t | x, |
|
|
Double_t | y, |
|
|
Double_t | z ) |
|
override |
◆ GetBz() [1/2]
| Double_t ShipConstField::GetBz |
( |
| ) |
const |
|
inline |
◆ GetBz() [2/2]
| Double_t ShipConstField::GetBz |
( |
Double_t | x, |
|
|
Double_t | y, |
|
|
Double_t | z ) |
|
override |
◆ GetFieldValue()
| void ShipConstField::GetFieldValue |
( |
const Double_t | point[3], |
|
|
Double_t * | bField ) |
|
override |
Get all three field components at once, performing the in-region test a single time (the default implementation calls GetBx/GetBy/GetBz, each of which repeats the same six boundary comparisons).
- Parameters
-
| point | Point coordinates [cm] |
| bField | (return) Field components [kG] |
Definition at line 141 of file ShipConstField.cxx.
141 {
144 bField[0] = 0.;
145 bField[1] = 0.;
146 bField[2] = 0.;
147 return;
148 }
152}
◆ GetXmax()
| Double_t ShipConstField::GetXmax |
( |
| ) |
const |
|
inline |
◆ GetXmin()
| Double_t ShipConstField::GetXmin |
( |
| ) |
const |
|
inline |
◆ GetYmax()
| Double_t ShipConstField::GetYmax |
( |
| ) |
const |
|
inline |
◆ GetYmin()
| Double_t ShipConstField::GetYmin |
( |
| ) |
const |
|
inline |
◆ GetZmax()
| Double_t ShipConstField::GetZmax |
( |
| ) |
const |
|
inline |
◆ GetZmin()
| Double_t ShipConstField::GetZmin |
( |
| ) |
const |
|
inline |
◆ Print()
| void ShipConstField::Print |
( |
Option_t * | = "" | ) |
const |
|
override |
Screen output
Definition at line 156 of file ShipConstField.cxx.
156 {
157 cout << "======================================================" << endl;
158 cout << "---- " << fTitle << " : " << fName << endl;
159 cout << "----" << endl;
160 cout << "---- Field type : constant" << endl;
161 cout << "----" << endl;
162 cout << "---- Field regions : " << endl;
163 cout <<
"---- x = " << setw(4) <<
fXmin <<
" to " << setw(4) <<
fXmax
164 << " cm" << endl;
165 cout <<
"---- y = " << setw(4) <<
fYmin <<
" to " << setw(4) <<
fYmax
166 << " cm" << endl;
167 cout <<
"---- z = " << setw(4) <<
fZmin <<
" to " << setw(4) <<
fZmax
168 << " cm" << endl;
169 cout.precision(4);
170 cout <<
"---- B = ( " <<
fBx <<
", " <<
fBy <<
", " <<
fBz <<
" ) kG"
171 << endl;
172 cout << "======================================================" << endl;
173}
◆ SetField()
| void ShipConstField::SetField |
( |
Double_t | bX, |
|
|
Double_t | bY, |
|
|
Double_t | bZ ) |
Set the field values
- Parameters
-
| bX,bY,bZ | Field values [kG] |
Definition at line 106 of file ShipConstField.cxx.
◆ SetFieldRegion()
| void ShipConstField::SetFieldRegion |
( |
Double_t | xMin, |
|
|
Double_t | xMax, |
|
|
Double_t | yMin, |
|
|
Double_t | yMax, |
|
|
Double_t | zMin, |
|
|
Double_t | zMax ) |
Set the field region
- Parameters
-
| xMin,xMax | x region of field (global coordinates) |
| yMin,yMax | y region of field (global coordinates) |
| zMin,zMax | z region of field (global coordinates) |
Definition at line 93 of file ShipConstField.cxx.
◆ fBx
| Double_t ShipConstField::fBx |
|
private |
◆ fBy
| Double_t ShipConstField::fBy |
|
private |
◆ fBz
| Double_t ShipConstField::fBz |
|
private |
◆ fXmax
| Double_t ShipConstField::fXmax |
|
private |
◆ fXmin
| Double_t ShipConstField::fXmin |
|
private |
◆ fYmax
| Double_t ShipConstField::fYmax |
|
private |
◆ fYmin
| Double_t ShipConstField::fYmin |
|
private |
◆ fZmax
| Double_t ShipConstField::fZmax |
|
private |
◆ fZmin
| Double_t ShipConstField::fZmin |
|
private |
The documentation for this class was generated from the following files: