#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 26 of file ShipConstField.h.
◆ ShipConstField() [1/3]
ShipConstField::ShipConstField |
( |
| ) |
|
Default constructor
Definition at line 20 of file ShipConstField.cxx.
21 : FairField(),
31{
32 fType = 0;
33}
◆ 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 |
|
) |
| |
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.
44 : FairField(name),
54{
55 fType=0;
56}
◆ ShipConstField() [3/3]
Constructor from ShipFieldPar
Definition at line 62 of file ShipConstField.cxx.
63 : FairField(),
73{
74 if ( ! fieldPar ) {
75 cerr << "-W- ShipConstField::ShipConstField: empty parameter container!"
76 << endl;
77 fType=0;
78 }
79 else {
90 }
91}
◆ ~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 128 of file ShipConstField.cxx.
128 {
129 if ( x < fXmin || x >
fXmax ||
130 y < fYmin || y >
fYmax ||
131 z < fZmin || z >
fZmax )
return 0.;
133}
◆ 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 161 of file ShipConstField.cxx.
161 {
162 cout << "======================================================" << endl;
163 cout << "---- " << fTitle << " : " << fName << endl;
164 cout << "----" << endl;
165 cout << "---- Field type : constant" << endl;
166 cout << "----" << endl;
167 cout << "---- Field regions : " << endl;
168 cout <<
"---- x = " << setw(4) <<
fXmin <<
" to " << setw(4)
169 <<
fXmax <<
" cm" << endl;
170 cout <<
"---- y = " << setw(4) <<
fYmin <<
" to " << setw(4)
171 <<
fYmax <<
" cm" << endl;
172 cout <<
"---- z = " << setw(4) <<
fZmin <<
" to " << setw(4)
173 <<
fZmax <<
" cm" << endl;
174 cout.precision(4);
175 cout <<
"---- B = ( " <<
fBx <<
", " <<
fBy <<
", " <<
fBz <<
" ) kG"
176 << endl;
177 cout << "======================================================" << endl;
178}
◆ 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 118 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 103 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: