Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t > Struct Template Reference

Fatras simulator. More...

#include <acts-fatras/blob/master/Core/include/Fatras/Kernel/Simulator.hpp>

+ Collaboration diagram for Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >:

Public Types

using PhysicsList_t = typename charged_interactor_t::PhysicsList_t
 

Public Member Functions

 Simulator (charged_propagator_t chpropagator, neutral_propagator_t npropagator)
 
const Acts::Loggerlogger () const
 Private access to the logging instance.
 
template<typename context_t , typename generator_t , typename event_collection_t , typename hit_collection_t >
void operator() (context_t &fatrasContext, generator_t &fatrasGenerator, event_collection_t &fatrasEvent, hit_collection_t &fatrasHits) const
 call operator to the simulator
 

Public Attributes

charged_propagator_t chargedPropagator
 
charged_selector_t chargedSelector
 
PhysicsList_t physicsList
 
neutral_propagator_t neutralPropagator
 
neutral_selector_t neutralSelector
 
VoidDetector detector
 
std::shared_ptr< const
Acts::Logger
mlogger = nullptr
 
bool debug = false
 

Detailed Description

template<typename charged_propagator_t, typename charged_selector_t, typename charged_interactor_t, typename neutral_propagator_t, typename neutral_selector_t, typename neutral_interactor_t>
struct Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >

Fatras simulator.

This is called from a Fatras steering algorithm Per call, the generator is provided which is then used to create a Acts propagator plugin.

Template Parameters
charged_propagator_tType of the propagator for charged particles
charged_selector_tType of the slector (list) for charged particles
charged_interactor_tType of the dresser for chargerd particles
neutral_propagator_tType of the propagator for neutral particles
neutral_selector_tType of the slector (list) for neutral particles
neutral_interactor_tType of the dresser for neutral particles

Definition at line 41 of file Simulator.hpp.

View newest version in sPHENIX GitHub at line 41 of file Simulator.hpp

Member Typedef Documentation

template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
using Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::PhysicsList_t = typename charged_interactor_t::PhysicsList_t

Definition at line 48 of file Simulator.hpp.

View newest version in sPHENIX GitHub at line 48 of file Simulator.hpp

Constructor & Destructor Documentation

template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::Simulator ( charged_propagator_t  chpropagator,
neutral_propagator_t  npropagator 
)
inline

Definition at line 43 of file Simulator.hpp.

View newest version in sPHENIX GitHub at line 43 of file Simulator.hpp

Member Function Documentation

template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
const Acts::Logger& Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::logger ( ) const
inline

Private access to the logging instance.

Definition at line 63 of file Simulator.hpp.

View newest version in sPHENIX GitHub at line 63 of file Simulator.hpp

References Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::mlogger.

template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
template<typename context_t , typename generator_t , typename event_collection_t , typename hit_collection_t >
void Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::operator() ( context_t &  fatrasContext,
generator_t &  fatrasGenerator,
event_collection_t &  fatrasEvent,
hit_collection_t &  fatrasHits 
) const
inline

call operator to the simulator

Template Parameters
context_tType pf the context object
generator_tType of the generator object
event_collection_tType of the event collection
hit_collection_tType of the hit collection, needs insert()
Parameters
fatrasContextis the event-bound context
fatrasGeneratoris the event-bound random generator
fatrasEventis the truth event collection
fatrasHitsis the hit collection

Definition at line 78 of file Simulator.hpp.

View newest version in sPHENIX GitHub at line 78 of file Simulator.hpp

References ACTS_INFO, Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::chargedPropagator, Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::chargedSelector, Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::debug, i, Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::neutralPropagator, Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::neutralSelector, particle, Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::physicsList, and start.

Member Data Documentation

template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
charged_propagator_t Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::chargedPropagator
template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
charged_selector_t Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::chargedSelector
template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
bool Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::debug = false
template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
VoidDetector Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::detector

Definition at line 56 of file Simulator.hpp.

View newest version in sPHENIX GitHub at line 56 of file Simulator.hpp

template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
std::shared_ptr<const Acts::Logger> Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::mlogger = nullptr
template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
neutral_propagator_t Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::neutralPropagator
template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
neutral_selector_t Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::neutralSelector
template<typename charged_propagator_t , typename charged_selector_t , typename charged_interactor_t , typename neutral_propagator_t , typename neutral_selector_t , typename neutral_interactor_t >
PhysicsList_t Fatras::Simulator< charged_propagator_t, charged_selector_t, charged_interactor_t, neutral_propagator_t, neutral_selector_t, neutral_interactor_t >::physicsList

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