FairRoot
|
#include <FairField.h>
Public Member Functions | |
FairField () | |
FairField (const char *name, const char *title="FAIR Magnetic Field") | |
FairField & | operator= (const FairField &) |
virtual | ~FairField () |
virtual void | Init () |
Bool_t | IsConst () |
Bool_t | IsMap () |
Int_t | GetType () const |
virtual Double_t | GetBx (Double_t, Double_t, Double_t) |
virtual Double_t | GetBy (Double_t, Double_t, Double_t) |
virtual Double_t | GetBz (Double_t, Double_t, Double_t) |
virtual void | GetFieldValue (const Double_t point[3], Double_t *bField) |
void | Field (const Double_t point[3], Double_t *B) |
virtual void | Print (Option_t *) const |
virtual void | GetBxyz (const Double_t[3], Double_t *) |
virtual void | FillParContainer () |
Protected Attributes | |
Int_t | fType |
Abstract base class for magnetic fields in FAIR Concrete field should implement the pure virtual methods GetBx, GetBy and GetBz and/or GetBxyz
Note: Field values should be returned in kG (thanks to Geant3)
Definition at line 36 of file FairField.h.
FairField::FairField | ( | ) |
Default constructor
Definition at line 16 of file FairField.cxx.
FairField::FairField | ( | const char * | name, |
const char * | title = "FAIR Magnetic Field" |
||
) |
Constructor with name and title
Definition at line 21 of file FairField.cxx.
|
virtual |
Destructor
Definition at line 26 of file FairField.cxx.
|
inline |
Definition at line 97 of file FairField.h.
|
inlinevirtual |
|
inlinevirtual |
Get x component of magnetic field [kG]
x,y,z | Position [cm] |
Reimplemented in MyConstField, MyConstField, and FairConstField.
Definition at line 67 of file FairField.h.
|
inlinevirtual |
Definition at line 101 of file FairField.h.
|
inlinevirtual |
Get y component of magnetic field [kG]
x,y,z | Position [cm] |
Reimplemented in MyConstField, MyConstField, and FairConstField.
Definition at line 76 of file FairField.h.
|
inlinevirtual |
Get z component of magnetic field [kG]
x,y,z | Position [cm] |
Reimplemented in MyConstField, MyConstField, and FairConstField.
Definition at line 85 of file FairField.h.
|
virtual |
Get magnetic field. For use of Geant3
point | Coordinates [cm] |
bField | (return) Field components [kG] |
Definition at line 44 of file FairField.cxx.
|
inline |
Field type ( 0=constant, 1=map, 2=map sym2, 3 = map sym3 )
Definition at line 62 of file FairField.h.
|
inlinevirtual |
Intialisation. E.g. read in the field map. If needed, to be implemented in the concrete class.
Definition at line 53 of file FairField.h.
Bool_t FairField::IsConst | ( | ) |
Test whether field type is Constant
Definition at line 28 of file FairField.cxx.
Bool_t FairField::IsMap | ( | ) |
Test whether field typ is Map
Definition at line 36 of file FairField.cxx.
Definition at line 45 of file FairField.h.
|
inlinevirtual |
Screen output. To be implemented in the concrete class.
Reimplemented in FairConstField.
Definition at line 100 of file FairField.h.
|
protected |
Field type. 1 = constant field, 2 = field map.
Definition at line 111 of file FairField.h.