Bfield manager to obtain the magnetic field at any point.
More...
#include <BFieldManager.h>
Bfield manager to obtain the magnetic field at any point.
This class is implemented as singleton, there can only be one magnetic field. It has static members to get the field at a given point.
- Note
- For internal use in the simulation, there is also a BFieldMap class in the geometry package with similar behaviour. To ensure consistent output, the BFieldFrameworkInterface component provides a wrapper around BFieldMap and is used by default.
Definition at line 32 of file BFieldManager.h.
◆ getField() [1/3]
return the magnetic field at a given position.
- Parameters
-
pos | position where to evaluate the magnetic field |
- Returns
- magnetic field value at position pos in framework units
Definition at line 62 of file BFieldManager.h.
◆ getField() [2/3]
static TVector3 getField |
( |
const TVector3 & |
pos | ) |
|
|
inlinestatic |
return the magnetic field at a given position.
- Parameters
-
pos | position where to evaluate the magnetic field |
- Returns
- magnetic field value at position pos in framework units
Definition at line 43 of file BFieldManager.h.
◆ getField() [3/3]
static B2Vector3D getField |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
inlinestatic |
return the magnetic field at a given position.
- Parameters
-
x | x coordinate of the position where to evaluate the magnetic field |
y | y coordinate of the position where to evaluate the magnetic field |
z | z coordinate of the position where to evaluate the magnetic field |
- Returns
- magnetic field value at position pos in framework units
Definition at line 54 of file BFieldManager.h.
◆ getFieldInTesla()
return the magnetic field at a given position in Tesla.
- Parameters
-
pos | position where to evaluate the magnetic field |
- Returns
- magnetic field value at position pos in Tesla
Definition at line 70 of file BFieldManager.h.
The documentation for this class was generated from the following files: