EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/Geant4/GeantinoRecording.hpp>
Classes | |
struct | Config |
Public Member Functions | |
GeantinoRecording (Config &&cfg, Acts::Logging::Level lvl) | |
~GeantinoRecording () | |
ActsExamples::ProcessCode | execute (const ActsExamples::AlgorithmContext &ctx) const finaloverride |
Public Member Functions inherited from ActsExamples::BareAlgorithm | |
BareAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO) | |
std::string | name () const finaloverride |
The algorithm name. | |
Private Attributes | |
Config | m_cfg |
std::unique_ptr< G4RunManager > | m_runManager |
std::mutex | m_runManagerLock |
Additional Inherited Members | |
Protected Member Functions inherited from ActsExamples::BareAlgorithm | |
const Acts::Logger & | logger () const |
Records the simulation geometry using geantinos.
This initiates the Geant4 simulation, and creates and writes out the MaterialTrack entities which are needed for material mapping.
Definition at line 37 of file GeantinoRecording.hpp.
View newest version in sPHENIX GitHub at line 37 of file GeantinoRecording.hpp
GeantinoRecording::GeantinoRecording | ( | GeantinoRecording::Config && | cfg, |
Acts::Logging::Level | lvl | ||
) |
Definition at line 26 of file GeantinoRecording.cpp.
View newest version in sPHENIX GitHub at line 26 of file GeantinoRecording.cpp
References ActsExamples::GeantinoRecording::Config::detectorConstruction, ActsExamples::PrimaryGeneratorAction::Config::energy, ActsExamples::GeantinoRecording::Config::generationConfig, m_cfg, m_runManager, ActsExamples::GeantinoRecording::Config::outputMaterialTracks, and ActsExamples::PrimaryGeneratorAction::Config::particleName.
GeantinoRecording::~GeantinoRecording | ( | ) |
Definition at line 52 of file GeantinoRecording.cpp.
View newest version in sPHENIX GitHub at line 52 of file GeantinoRecording.cpp
|
finaloverridevirtual |
Execute the algorithm for one event.
This function must be implemented by subclasses.
Implements ActsExamples::BareAlgorithm.
Definition at line 54 of file GeantinoRecording.cpp.
View newest version in sPHENIX GitHub at line 54 of file GeantinoRecording.cpp
References ActsExamples::WhiteBoard::add(), ActsExamples::AlgorithmContext::eventStore, ActsExamples::EventAction::instance(), m_cfg, m_runManager, m_runManagerLock, ActsExamples::EventAction::materialTracks(), ActsExamples::GeantinoRecording::Config::outputMaterialTracks, SUCCESS, and ActsExamples::GeantinoRecording::Config::tracksPerEvent.
|
private |
Definition at line 57 of file GeantinoRecording.hpp.
View newest version in sPHENIX GitHub at line 57 of file GeantinoRecording.hpp
Referenced by execute(), and GeantinoRecording().
|
private |
Definition at line 58 of file GeantinoRecording.hpp.
View newest version in sPHENIX GitHub at line 58 of file GeantinoRecording.hpp
Referenced by execute(), and GeantinoRecording().
|
mutableprivate |
Definition at line 60 of file GeantinoRecording.hpp.
View newest version in sPHENIX GitHub at line 60 of file GeantinoRecording.hpp
Referenced by execute().