Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/Geant4/SimParticleTranslation.hpp>
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::Logger & | logger () const |
Private access method to the logging instance. | |
EventStore & | eventStore () 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. | |
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
ActsExamples::SimParticleTranslation::SimParticleTranslation | ( | const Config & | cfg, |
std::unique_ptr< const Acts::Logger > | logger = Acts::getDefaultLogger("SimParticleTranslation", Acts::Logging::INFO) |
||
) |
Construct the generator action
cfg | the configuration struct |
logger | the ACTS logging instance |
Definition at line 39 of file SimParticleTranslation.cpp.
View newest version in sPHENIX GitHub at line 39 of file SimParticleTranslation.cpp
|
overridedefault |
|
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.
|
override |
Interface method to generate the primary
anEvent | is 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.
|
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.
|
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().
|
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
|
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().