Template Struct ParticleSimulator¶
Defined in File Simulator.hpp
Struct Documentation¶
-
template<typename
propagator_t
, typenameinteractions_t
, typenamehit_surface_selector_t
, typenamedecay_t
>
structActsFatras
::
ParticleSimulator
¶ Single particle simulator with a fixed propagator and physics list.
- Template Parameters
generator_t
: random number generatorinteractions_t
: interaction listhit_surface_selector_t
: selector for hit surfacesdecay_t
: decay module
Public Functions
-
ParticleSimulator
(propagator_t &&propagator_, Acts::Logging::Level lvl)¶ Construct the simulator with the underlying propagator.
-
const Acts::Logger &
logger
() const¶ Provide access to the local logger instance, e.g. for logging macros.
-
template<typename
generator_t
>
Acts::Result<SimulationResult>simulate
(const Acts::GeometryContext &geoCtx, const Acts::MagneticFieldContext &magCtx, generator_t &generator, const Particle &particle) const¶ Simulate a single particle without secondaries.
- Return
the result of the corresponding Interactor propagator action.
- Parameters
geoCtx
: is the geometry context to access surface geometriesmagCtx
: is the magnetic field context to access field valuesgenerator
: is the random number generatorparticle
: is the initial particle state
- Template Parameters
generator_t
: is the type of the random number generator
Public Members
-
interactions_t
interactions
¶ Interaction list containing the simulated interactions.
-
propagator_t
propagator
¶ How and within which geometry to propagate the particle.
-
hit_surface_selector_t
selectHitSurface
¶ Selector for surfaces that should generate hits.