ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
records the simulation geometry by using geantinos More...
Classes | |
class | Config |
Public Member Functions | |
GeantinoRecording (const Config &cnf, Acts::Logging::Level level=Acts::Logging::INFO) | |
Constructor. | |
FW::ProcessCode | execute (const AlgorithmContext &context) const finaloverride |
Public Member Functions inherited from FW::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 |
The config object. | |
std::unique_ptr< G4RunManager > | m_runManager |
G4 run manager. | |
Additional Inherited Members | |
Protected Member Functions inherited from FW::BareAlgorithm | |
const Acts::Logger & | logger () const |
records the simulation geometry by using geantinos
The GeantinoRecording algorithm initiates the geant4 simulation of the Geant4materialMapping plugin, creates and writes out the MaterialTrack entities which are needed for material mapping. The input for the geant4 geometry can be either provided by a gdml file or an implementation of the IGeant4Service.
Definition at line 42 of file GeantinoRecording.hpp.
View newest version in sPHENIX GitHub at line 42 of file GeantinoRecording.hpp
FW::GeantinoRecording::GeantinoRecording | ( | const Config & | cnf, |
Acts::Logging::Level | level = Acts::Logging::INFO |
||
) |
Constructor.
Check if the geometry should be accessed over the geant4 service
Access the geometry from the gdml file
Now set up the Geant4 simulation
Definition at line 22 of file GeantinoRecording.cpp.
View newest version in sPHENIX GitHub at line 22 of file GeantinoRecording.cpp
References ACTS_INFO, FW::GeantinoRecording::Config::gdmlFile, FW::GeantinoRecording::Config::geant4Service, m_cfg, m_runManager, FW::GeantinoRecording::Config::seed1, and FW::GeantinoRecording::Config::seed2.
|
finaloverridevirtual |
Execute the algorithm for one event.
This function must be implemented by subclasses.
Implements FW::BareAlgorithm.
Definition at line 55 of file GeantinoRecording.cpp.
View newest version in sPHENIX GitHub at line 55 of file GeantinoRecording.cpp
References ACTS_INFO, FW::WhiteBoard::add(), FW::AlgorithmContext::eventStore, FW::Geant4::MMEventAction::Instance(), FW::Geant4::MMEventAction::MaterialTracks(), and SUCCESS.
|
private |
The config object.
Definition at line 71 of file GeantinoRecording.hpp.
View newest version in sPHENIX GitHub at line 71 of file GeantinoRecording.hpp
Referenced by GeantinoRecording().
|
private |
G4 run manager.
Definition at line 73 of file GeantinoRecording.hpp.
View newest version in sPHENIX GitHub at line 73 of file GeantinoRecording.hpp
Referenced by GeantinoRecording().