![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/Geant4/SensitiveSteppingAction.hpp>
Inheritance diagram for ActsExamples::SensitiveSteppingAction:
Collaboration diagram for ActsExamples::SensitiveSteppingAction:Classes | |
| struct | Config |
| Configuration of the Stepping action. More... | |
Public Member Functions | |
| SensitiveSteppingAction (const Config &cfg, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("SensitiveSteppingAction", Acts::Logging::INFO)) | |
| ~SensitiveSteppingAction () override=default | |
| void | UserSteppingAction (const G4Step *step) override |
| Interface Method doing the step and records the data. | |
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 | |
| std::unique_ptr< const Acts::Logger > | m_logger |
| The looging instance. | |
The G4SteppingAction that is called for every step in the simulation process.
It checks whether a sensitive volume is present (via string tag) and records (if necessary) the hit.
Definition at line 28 of file SensitiveSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 28 of file SensitiveSteppingAction.hpp
| ActsExamples::SensitiveSteppingAction::SensitiveSteppingAction | ( | const Config & | cfg, |
| std::unique_ptr< const Acts::Logger > | logger = Acts::getDefaultLogger("SensitiveSteppingAction", Acts::Logging::INFO) |
||
| ) |
Construct the stepping action
| cfg | the configuration struct |
| logger | the ACTS logging instance |
Definition at line 93 of file SensitiveSteppingAction.cpp.
View newest version in sPHENIX GitHub at line 93 of file SensitiveSteppingAction.cpp
|
overridedefault |
|
inlineprivate |
Private access method to the event store.
Definition at line 63 of file SensitiveSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 63 of file SensitiveSteppingAction.hpp
References ActsExamples::SensitiveSteppingAction::Config::eventStore, and m_cfg.
|
inlineprivate |
Private access method to the logging instance.
Definition at line 60 of file SensitiveSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 60 of file SensitiveSteppingAction.hpp
References m_logger.
|
override |
Interface Method doing the step and records the data.
| step | is the Geant4 step of the particle |
Definition at line 97 of file SensitiveSteppingAction.cpp.
View newest version in sPHENIX GitHub at line 97 of file SensitiveSteppingAction.cpp
References ACTS_VERBOSE, assert, end, h, m_cfg(), ActsExamples::SensitiveSurfaceMapper::mappingPrefix, Acts::Test::pos4(), print(), physmon_simulation::s, and size.
Here is the call graph for this function:
|
protected |
Definition at line 56 of file SensitiveSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 56 of file SensitiveSteppingAction.hpp
Referenced by eventStore().
|
private |
The looging instance.
Definition at line 66 of file SensitiveSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 66 of file SensitiveSteppingAction.hpp
Referenced by logger().