|
CORSIKA
@c8_version@
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 &field, Args &&... args) | |
| Construct a UniformMagneticField. More... | |
| MagneticFieldVector | getMagneticField ([[maybe_unused]] Point const &point) const final override |
| Evaluate the magnetic field at a given location. More... | |
| void | setMagneticField (MagneticFieldVector const &Bfield) |
| 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 24 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 36 of file UniformMagneticField.hpp.
|
inlinefinaloverride |
Evaluate the magnetic field at a given location.
| point | The location to evaluate the field at (not used internally). |
Definition at line 46 of file UniformMagneticField.hpp.
|
inline |
Set the magnetic field returned by this instance.
| Bfield | The new vaue of the global magnetic field. |
Definition at line 56 of file UniformMagneticField.hpp.