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

Abstracts common Geant4 Acts algorithm behaviour. More...

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

+ Inheritance diagram for ActsExamples::Geant4SimulationBase:
+ Collaboration diagram for ActsExamples::Geant4SimulationBase:

Classes

struct  Config
 Nested configuration struct for the Geant4 simulation. More...
 

Public Member Functions

 Geant4SimulationBase (const Config &cfg, std::string name, Acts::Logging::Level level)
 
 ~Geant4SimulationBase () override
 
ProcessCode initialize () final
 Initialize the algorithm.
 
ActsExamples::ProcessCode execute (const ActsExamples::AlgorithmContext &ctx) const override
 
virtual const Configconfig () const =0
 Readonly access to the configuration.
 
std::shared_ptr< Geant4Handlegeant4Handle () const
 
- 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.
 

Protected Member Functions

void commonInitialization ()
 
G4RunManager & runManager () const
 
EventStoreeventStore () const
 
- Protected Member Functions inherited from ActsExamples::IAlgorithm
const Acts::Loggerlogger () const
 

Protected Attributes

std::unique_ptr< const
Acts::Logger
m_logger
 
std::shared_ptr< EventStorem_eventStore
 
int m_geant4Level {}
 
std::shared_ptr< Geant4Handlem_geant4Instance
 
G4VUserDetectorConstruction * m_detectorConstruction {}
 
ReadDataHandle
< SimParticleContainer
m_inputParticles {this, "InputParticles"}
 

Detailed Description

Abstracts common Geant4 Acts algorithm behaviour.

Definition at line 52 of file Geant4Simulation.hpp.

View newest version in sPHENIX GitHub at line 52 of file Geant4Simulation.hpp

Constructor & Destructor Documentation

ActsExamples::Geant4SimulationBase::Geant4SimulationBase ( const Config cfg,
std::string  name,
Acts::Logging::Level  level 
)

Definition at line 54 of file Geant4Simulation.cpp.

View newest version in sPHENIX GitHub at line 54 of file Geant4Simulation.cpp

References ActsExamples::Geant4SimulationBase::Config::detectorConstructionFactory, Acts::getDefaultLogger(), ActsExamples::Geant4SimulationBase::Config::inputParticles, Acts::Logger::level(), ActsExamples::IAlgorithm::logger(), m_eventStore, m_geant4Level, m_logger, ActsExamples::Geant4SimulationBase::Config::randomNumbers, and Acts::Logging::VERBOSE.

+ Here is the call graph for this function:

ActsExamples::Geant4SimulationBase::~Geant4SimulationBase ( )
overridedefault

Member Function Documentation

void ActsExamples::Geant4SimulationBase::commonInitialization ( )
protected

Definition at line 79 of file Geant4Simulation.cpp.

View newest version in sPHENIX GitHub at line 79 of file Geant4Simulation.cpp

References filter::config.

Referenced by ActsExamples::Geant4MaterialRecording::Geant4MaterialRecording(), and ActsExamples::Geant4Simulation::Geant4Simulation().

+ Here is the caller graph for this function:

virtual const Config& ActsExamples::Geant4SimulationBase::config ( ) const
pure virtual

Readonly access to the configuration.

Implemented in ActsExamples::Geant4MaterialRecording, and ActsExamples::Geant4Simulation.

ActsExamples::EventStore & ActsExamples::Geant4SimulationBase::eventStore ( ) const
protected

Definition at line 98 of file Geant4Simulation.cpp.

View newest version in sPHENIX GitHub at line 98 of file Geant4Simulation.cpp

ActsExamples::ProcessCode ActsExamples::Geant4SimulationBase::execute ( const ActsExamples::AlgorithmContext ctx) const
overridevirtual

Algorithm execute method, called once per event with context

Parameters
ctxthe AlgorithmContext for this event

Implements ActsExamples::IAlgorithm.

Reimplemented in ActsExamples::Geant4MaterialRecording, and ActsExamples::Geant4Simulation.

Definition at line 110 of file Geant4Simulation.cpp.

View newest version in sPHENIX GitHub at line 110 of file Geant4Simulation.cpp

References ACTS_DEBUG, ACTS_WARNING, filter::config, ActsExamples::AlgorithmContext::eventStore, physmon_simulation::randomNumbers, ActsExamples::EventStore::store, SUCCESS, and throw_assert.

Referenced by ActsExamples::Geant4Simulation::execute(), and ActsExamples::Geant4MaterialRecording::execute().

+ Here is the caller graph for this function:

std::shared_ptr< ActsExamples::Geant4Handle > ActsExamples::Geant4SimulationBase::geant4Handle ( ) const

Definition at line 170 of file Geant4Simulation.cpp.

View newest version in sPHENIX GitHub at line 170 of file Geant4Simulation.cpp

ActsExamples::ProcessCode ActsExamples::Geant4SimulationBase::initialize ( )
finalvirtual

Initialize the algorithm.

Implements ActsExamples::SequenceElement.

Definition at line 103 of file Geant4Simulation.cpp.

View newest version in sPHENIX GitHub at line 103 of file Geant4Simulation.cpp

References SUCCESS.

G4RunManager & ActsExamples::Geant4SimulationBase::runManager ( ) const
protected

Definition at line 94 of file Geant4Simulation.cpp.

View newest version in sPHENIX GitHub at line 94 of file Geant4Simulation.cpp

Referenced by ActsExamples::Geant4MaterialRecording::Geant4MaterialRecording(), and ActsExamples::Geant4Simulation::Geant4Simulation().

+ Here is the caller graph for this function:

Member Data Documentation

G4VUserDetectorConstruction* ActsExamples::Geant4SimulationBase::m_detectorConstruction {}
protected

Detector construction object. G4RunManager will take care of deletion

Definition at line 106 of file Geant4Simulation.hpp.

View newest version in sPHENIX GitHub at line 106 of file Geant4Simulation.hpp

Referenced by ActsExamples::Geant4Simulation::Geant4Simulation().

std::shared_ptr<EventStore> ActsExamples::Geant4SimulationBase::m_eventStore
protected
std::shared_ptr<Geant4Handle> ActsExamples::Geant4SimulationBase::m_geant4Instance
protected

Definition at line 102 of file Geant4Simulation.hpp.

View newest version in sPHENIX GitHub at line 102 of file Geant4Simulation.hpp

Referenced by ActsExamples::Geant4MaterialRecording::Geant4MaterialRecording(), and ActsExamples::Geant4Simulation::Geant4Simulation().

int ActsExamples::Geant4SimulationBase::m_geant4Level {}
protected
ReadDataHandle<SimParticleContainer> ActsExamples::Geant4SimulationBase::m_inputParticles {this, "InputParticles"}
protected

Definition at line 108 of file Geant4Simulation.hpp.

View newest version in sPHENIX GitHub at line 108 of file Geant4Simulation.hpp

Referenced by ActsExamples::Geant4MaterialRecording::Geant4MaterialRecording(), and ActsExamples::Geant4Simulation::Geant4Simulation().

std::unique_ptr<const Acts::Logger> ActsExamples::Geant4SimulationBase::m_logger
protected

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