Analysis Software
Documentation for sPHENIX simulation software
|
Classes | |
class | Config |
Public Member Functions | |
EventRecording (const Config &config, Acts::Logging::Level level) | |
~EventRecording () override | |
ActsExamples::ProcessCode | execute (const AlgorithmContext &context) const override |
const Config & | config () const |
Readonly access to the config. | |
Public Member Functions inherited from ActsExamples::IAlgorithm | |
IAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO) | |
std::string | name () const override |
The algorithm name. | |
ProcessCode | internalExecute (const AlgorithmContext &context) final |
ProcessCode | initialize () override |
Initialize the algorithm. | |
ProcessCode | finalize () override |
Finalize the algorithm. | |
Private Attributes | |
Config | m_cfg |
The config object. | |
std::unique_ptr< G4RunManager > | m_runManager |
G4 run manager. | |
ReadDataHandle < SimParticleContainer > | m_inputParticles {this, "InputParticles"} |
WriteDataHandle< std::vector < HepMC3::GenEvent > > | m_outputEvents |
std::mutex | m_runManagerLock |
Additional Inherited Members | |
Protected Member Functions inherited from ActsExamples::IAlgorithm | |
const Acts::Logger & | logger () const |
Definition at line 31 of file EventRecording.hpp.
View newest version in sPHENIX GitHub at line 31 of file EventRecording.hpp
ActsExamples::EventRecording::EventRecording | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Constructor
config | the configuration |
level | the log level |
Definition at line 33 of file EventRecording.cpp.
View newest version in sPHENIX GitHub at line 33 of file EventRecording.cpp
References ActsExamples::EventRecording::Config::detectorConstructionFactory, ActsExamples::WriteDataHandle< T >::initialize(), ActsExamples::ReadDataHandle< T >::initialize(), ActsExamples::EventRecording::Config::inputParticles, m_cfg, m_inputParticles, m_outputEvents, m_runManager, ActsExamples::EventRecording::Config::outputHepMcTracks, ActsExamples::EventRecording::Config::processesCombine, ActsExamples::EventRecording::Config::processesReject, ActsExamples::EventRecording::Config::seed1, and ActsExamples::EventRecording::Config::seed2.
|
override |
Definition at line 29 of file EventRecording.cpp.
View newest version in sPHENIX GitHub at line 29 of file EventRecording.cpp
References m_runManager.
|
inline |
Readonly access to the config.
Definition at line 67 of file EventRecording.hpp.
View newest version in sPHENIX GitHub at line 67 of file EventRecording.hpp
References m_cfg.
|
overridevirtual |
Execute the algorithm for one event.
This function must be implemented by subclasses.
Implements ActsExamples::IAlgorithm.
Definition at line 69 of file EventRecording.cpp.
View newest version in sPHENIX GitHub at line 69 of file EventRecording.cpp
References ACTS_INFO, event, ActsExamples::Geant4::HepMC3::EventAction::event(), physmon_vertexing::events, Acts::UnitConstants::GeV, vertex::id, ActsExamples::Geant4::HepMC3::SteppingAction::instance(), ActsExamples::Geant4::HepMC3::EventAction::instance(), ActsExamples::Geant4::HepMC3::PrimaryGeneratorAction::instance(), m_cfg(), Acts::UnitConstants::mm, testing::internal::move(), merge_hashes::p, ActsExamples::Geant4::HepMC3::PrimaryGeneratorAction::prepareParticleGun(), SUCCESS, testSigmaEff::v, and value.
|
private |
The config object.
Definition at line 71 of file EventRecording.hpp.
View newest version in sPHENIX GitHub at line 71 of file EventRecording.hpp
Referenced by config(), and EventRecording().
|
private |
Definition at line 75 of file EventRecording.hpp.
View newest version in sPHENIX GitHub at line 75 of file EventRecording.hpp
Referenced by EventRecording().
|
private |
Definition at line 76 of file EventRecording.hpp.
View newest version in sPHENIX GitHub at line 76 of file EventRecording.hpp
Referenced by EventRecording().
|
private |
G4 run manager.
Definition at line 73 of file EventRecording.hpp.
View newest version in sPHENIX GitHub at line 73 of file EventRecording.hpp
Referenced by EventRecording(), and ~EventRecording().
|
mutableprivate |
Definition at line 80 of file EventRecording.hpp.
View newest version in sPHENIX GitHub at line 80 of file EventRecording.hpp