|
CORSIKA8
0.0.0
The framework to simulate particle cascades for astroparticle physics
|
A uniform (constant) magnetic field. More...
#include <UniformMagneticField.hpp>

Public Member Functions | |
| template<typename... Args> | |
| UniformMagneticField (MagneticFieldVector const &B, Args &&... args) | |
| Construct a UniformMagneticField. More... | |
| MagneticFieldVector | getMagneticField (Point const &) const final override |
| Evaluate the magnetic field at a given location. More... | |
| auto | setMagneticField (MagneticFieldVector const &Bfield) -> void |
| Set the magnetic field returned by this instance. More... | |
A uniform (constant) magnetic field.
This class returns the same magnetic field vector for all evaluated locations.
Definition at line 25 of file UniformMagneticField.hpp.
|
inline |
Construct a UniformMagneticField.
This is initialized with a fixed magnetic field and returns this magnetic field at all locations.
| field | The fixed magnetic field to return. |
Definition at line 37 of file UniformMagneticField.hpp.
|
inlinefinaloverride |
Evaluate the magnetic field at a given location.
| point | The location to evaluate the field at. |
Definition at line 47 of file UniformMagneticField.hpp.
|
inline |
Set the magnetic field returned by this instance.
| point | The location to evaluate the field at. |
Definition at line 55 of file UniformMagneticField.hpp.