Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::SimParticleTranslation Class Referencefinal

#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/Geant4/SimParticleTranslation.hpp>

+ Inheritance diagram for ActsExamples::SimParticleTranslation:
+ Collaboration diagram for ActsExamples::SimParticleTranslation:

Classes

struct  Config
 

Public Member Functions

 SimParticleTranslation (const Config &cfg, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("SimParticleTranslation", Acts::Logging::INFO))
 
 ~SimParticleTranslation () override
 
void GeneratePrimaries (G4Event *anEvent) override
 

Protected Attributes

Config m_cfg
 

Private Member Functions

const Acts::Loggerlogger () const
 Private access method to the logging instance.
 
EventStoreeventStore () const
 Private access method to the event store.
 

Private Attributes

unsigned int m_eventNr = 0
 Event number cache for EventStore harmonization.
 
std::unique_ptr< const
Acts::Logger
m_logger
 The looging instance.
 

Detailed Description

Translates the Generated SimParticles from ACTS into Geant4 particles and acts as the associated Geant4 primary generator action.

This also ensures that the event numbers correspond to the ACTS framework event numbers and hence harmonizes the EventStore.

Definition at line 33 of file SimParticleTranslation.hpp.

View newest version in sPHENIX GitHub at line 33 of file SimParticleTranslation.hpp

Constructor & Destructor Documentation

ActsExamples::SimParticleTranslation::SimParticleTranslation ( const Config cfg,
std::unique_ptr< const Acts::Logger logger = Acts::getDefaultLogger("SimParticleTranslation",                                                    Acts::Logging::INFO) 
)

Construct the generator action

Parameters
cfgthe configuration struct
loggerthe ACTS logging instance

Definition at line 39 of file SimParticleTranslation.cpp.

View newest version in sPHENIX GitHub at line 39 of file SimParticleTranslation.cpp

ActsExamples::SimParticleTranslation::~SimParticleTranslation ( )
overridedefault

Member Function Documentation

EventStore& ActsExamples::SimParticleTranslation::eventStore ( ) const
inlineprivate

Private access method to the event store.

Definition at line 78 of file SimParticleTranslation.hpp.

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

References ActsExamples::SimParticleTranslation::Config::eventStore, and m_cfg.

void ActsExamples::SimParticleTranslation::GeneratePrimaries ( G4Event *  anEvent)
override

Interface method to generate the primary

Parameters
anEventis the event that will be run

Definition at line 47 of file SimParticleTranslation.cpp.

View newest version in sPHENIX GitHub at line 47 of file SimParticleTranslation.cpp

References ACTS_DEBUG, ACTS_ERROR, ACTS_VERBOSE, ACTS_WARNING, Acts::UnitConstants::GeV, physmon_simulation::inputParticles, m_cfg(), Acts::UnitConstants::mm, Acts::UnitConstants::ns, particle, and store.

+ Here is the call graph for this function:

const Acts::Logger& ActsExamples::SimParticleTranslation::logger ( ) const
inlineprivate

Private access method to the logging instance.

Definition at line 75 of file SimParticleTranslation.hpp.

View newest version in sPHENIX GitHub at line 75 of file SimParticleTranslation.hpp

References m_logger.

Member Data Documentation

Config ActsExamples::SimParticleTranslation::m_cfg
protected

Definition at line 68 of file SimParticleTranslation.hpp.

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

Referenced by eventStore().

unsigned int ActsExamples::SimParticleTranslation::m_eventNr = 0
private

Event number cache for EventStore harmonization.

Definition at line 72 of file SimParticleTranslation.hpp.

View newest version in sPHENIX GitHub at line 72 of file SimParticleTranslation.hpp

std::unique_ptr<const Acts::Logger> ActsExamples::SimParticleTranslation::m_logger
private

The looging instance.

Definition at line 81 of file SimParticleTranslation.hpp.

View newest version in sPHENIX GitHub at line 81 of file SimParticleTranslation.hpp

Referenced by logger().


The documentation for this class was generated from the following files: