EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t > Struct Template Reference

#include <acts/blob/sPHENIX/Fatras/include/ActsFatras/Kernel/detail/Interactor.hpp>

+ Collaboration diagram for ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >:

Classes

struct  ParticleNotAlive
 Abort if the particle was killed during a previous interaction. More...
 

Public Types

using result_type = SimulationResult
 

Public Member Functions

template<typename propagator_state_t , typename stepper_t >
void operator() (propagator_state_t &state, stepper_t &stepper, result_type &result) const
 
template<typename propagator_state_t , typename stepper_t >
void operator() (propagator_state_t &, stepper_t &) const
 Pure observer interface. Does not apply to the Fatras simulator.
 

Public Attributes

generator_t * generator = nullptr
 Random number generator used for the simulation.
 
physics_list_t physics
 Physics list detailing the simulated interactions and processes.
 
hit_surface_selector_t selectHitSurface
 Selector for surfaces that should generate hits.
 
Particle particle
 Initial particle state.
 

Detailed Description

template<typename generator_t, typename physics_list_t, typename hit_surface_selector_t>
struct ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >

Fatras interactor plugin for the Acts propagator.

This plugin must be added to the action list of the propagator and is the equivalent to the MaterialInteractor for the reconstruction. This implements surface-based simulation of particle interactions with matter using a configurable physics lists. The physics lists is called for every surface with valid material.

Template Parameters
generator_tis a random number generator
physics_list_tis a simulation physics lists
hit_surface_selector_tis a selector of sensitive hit surfaces

Definition at line 35 of file Interactor.hpp.

View newest version in sPHENIX GitHub at line 35 of file Interactor.hpp

Member Typedef Documentation

template<typename generator_t , typename physics_list_t , typename hit_surface_selector_t >
using ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::result_type = SimulationResult

Definition at line 36 of file Interactor.hpp.

View newest version in sPHENIX GitHub at line 36 of file Interactor.hpp

Member Function Documentation

template<typename generator_t , typename physics_list_t , typename hit_surface_selector_t >
template<typename propagator_state_t , typename stepper_t >
void ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::operator() ( propagator_state_t &  state,
stepper_t &  stepper,
result_type result 
) const
inline

Simulate the interaction with a single surface.

Template Parameters
propagator_state_tis propagator state
stepper_tis the stepper instance
Parameters
stateis the mutable propagator state object
stepperis the propagation stepper object
resultis the mutable result/cache object

Definition at line 68 of file Interactor.hpp.

View newest version in sPHENIX GitHub at line 68 of file Interactor.hpp

References ActsFatras::SimulationResult::generatedParticles, ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::generator, Acts::GeometryObject::geometryId(), Acts::Surface::globalToLocal(), ActsFatras::SimulationResult::hits, ActsFatras::SimulationResult::isAlive, Acts::ISurfaceMaterial::materialSlab(), Acts::Surface::normal(), ActsFatras::SimulationResult::particle, ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::particle, ActsFatras::SimulationResult::pathInL0, ActsFatras::Particle::pathInL0(), ActsFatras::SimulationResult::pathInX0, ActsFatras::Particle::pathInX0(), ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::physics, Acts::MaterialSlab::scaleThickness(), ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::selectHitSurface, surface(), Acts::Surface::surfaceMaterial(), Acts::MaterialSlab::thicknessInL0(), and Acts::MaterialSlab::thicknessInX0().

+ Here is the call graph for this function:

template<typename generator_t , typename physics_list_t , typename hit_surface_selector_t >
template<typename propagator_state_t , typename stepper_t >
void ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::operator() ( propagator_state_t &  ,
stepper_t &   
) const
inline

Pure observer interface. Does not apply to the Fatras simulator.

Definition at line 157 of file Interactor.hpp.

View newest version in sPHENIX GitHub at line 157 of file Interactor.hpp

Member Data Documentation

template<typename generator_t , typename physics_list_t , typename hit_surface_selector_t >
generator_t* ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::generator = nullptr

Random number generator used for the simulation.

Definition at line 51 of file Interactor.hpp.

View newest version in sPHENIX GitHub at line 51 of file Interactor.hpp

Referenced by ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::operator()().

template<typename generator_t , typename physics_list_t , typename hit_surface_selector_t >
Particle ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::particle

Initial particle state.

Definition at line 57 of file Interactor.hpp.

View newest version in sPHENIX GitHub at line 57 of file Interactor.hpp

Referenced by ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::operator()().

template<typename generator_t , typename physics_list_t , typename hit_surface_selector_t >
physics_list_t ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::physics

Physics list detailing the simulated interactions and processes.

Definition at line 53 of file Interactor.hpp.

View newest version in sPHENIX GitHub at line 53 of file Interactor.hpp

Referenced by ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::operator()().

template<typename generator_t , typename physics_list_t , typename hit_surface_selector_t >
hit_surface_selector_t ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::selectHitSurface

Selector for surfaces that should generate hits.

Definition at line 55 of file Interactor.hpp.

View newest version in sPHENIX GitHub at line 55 of file Interactor.hpp

Referenced by ActsFatras::detail::Interactor< generator_t, physics_list_t, hit_surface_selector_t >::operator()().


The documentation for this struct was generated from the following file: