Bfield manager to obtain the magnetic field at any point.
More...
#include <BFieldManager.h>
|
static void | getField (const double *pos, double *field) |
| return the magnetic field at a given position. More...
|
|
static ROOT::Math::XYZVector | getField (double x, double y, double z) |
| return the magnetic field at a given position. More...
|
|
static ROOT::Math::XYZVector | getField (const ROOT::Math::XYZVector &pos) |
| return the magnetic field at a given position. More...
|
|
static ROOT::Math::XYZVector | getFieldInTesla (const ROOT::Math::XYZVector &pos) |
| return the magnetic field at a given position in Tesla. More...
|
|
static BFieldManager & | getInstance () |
| Return the instance of the magnetic field manager.
|
|
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/2]
static ROOT::Math::XYZVector getField |
( |
const ROOT::Math::XYZVector & |
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 53 of file BFieldManager.h.
◆ getField() [2/2]
static ROOT::Math::XYZVector 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 45 of file BFieldManager.h.
◆ getFieldInTesla()
static ROOT::Math::XYZVector getFieldInTesla |
( |
const ROOT::Math::XYZVector & |
pos | ) |
|
|
inlinestatic |
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 61 of file BFieldManager.h.
The documentation for this class was generated from the following files: