#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) |
| |
| virtual | ~ShipConstField () |
| |
| 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) |
| |
| virtual Double_t | GetBx (Double_t x, Double_t y, Double_t z) |
| |
| virtual Double_t | GetBy (Double_t x, Double_t y, Double_t z) |
| |
| virtual Double_t | GetBz (Double_t x, Double_t y, Double_t z) |
| |
| 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 |
| |
| virtual void | Print () |
| |
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 |
( |
| ) |
|
|
virtual |
◆ ClassDef()
◆ 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 |
|
) |
| |
|
virtual |
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 |
|
) |
| |
|
virtual |
◆ 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 |
|
) |
| |
|
virtual |
◆ 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 |
( |
| ) |
|
|
virtual |
Screen output
Definition at line 141 of file ShipConstField.cxx.
141 {
142 cout << "======================================================" << endl;
143 cout << "---- " << fTitle << " : " << fName << endl;
144 cout << "----" << endl;
145 cout << "---- Field type : constant" << endl;
146 cout << "----" << endl;
147 cout << "---- Field regions : " << endl;
148 cout <<
"---- x = " << setw(4) <<
fXmin <<
" to " << setw(4) <<
fXmax
149 << " cm" << endl;
150 cout <<
"---- y = " << setw(4) <<
fYmin <<
" to " << setw(4) <<
fYmax
151 << " cm" << endl;
152 cout <<
"---- z = " << setw(4) <<
fZmin <<
" to " << setw(4) <<
fZmax
153 << " cm" << endl;
154 cout.precision(4);
155 cout <<
"---- B = ( " <<
fBx <<
", " <<
fBy <<
", " <<
fBz <<
" ) kG"
156 << endl;
157 cout << "======================================================" << endl;
158}
◆ 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: