Analysis Software
Documentation for sPHENIX simulation software
|
Collects the RecordedMaterialSlab entities. More...
#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/Geant4/MaterialSteppingAction.hpp>
Classes | |
struct | Config |
Nested configuration struct. More... | |
Public Member Functions | |
MaterialSteppingAction (const Config &cfg, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("SimParticleTranslation", Acts::Logging::INFO)) | |
~MaterialSteppingAction () override | |
void | UserSteppingAction (const G4Step *step) override |
Action per step to be performed. | |
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 | |
Config | m_cfg |
Config struct. | |
std::unique_ptr< const Acts::Logger > | m_logger |
The looging instance. | |
Collects the RecordedMaterialSlab entities.
The MaterialSteppingAction class is the implementation of the Geant4 class MaterialSteppingAction. It extracts the weighted material of every step and collects all material steps.
Definition at line 31 of file MaterialSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 31 of file MaterialSteppingAction.hpp
ActsExamples::MaterialSteppingAction::MaterialSteppingAction | ( | const Config & | cfg, |
std::unique_ptr< const Acts::Logger > | logger = Acts::getDefaultLogger("SimParticleTranslation", Acts::Logging::INFO) |
||
) |
Construct the action
cfg | the configuration struct for this Stepping action |
logger | is an Acts::Logger for unique logging |
Definition at line 27 of file MaterialSteppingAction.cpp.
View newest version in sPHENIX GitHub at line 27 of file MaterialSteppingAction.cpp
|
overridedefault |
|
inlineprivate |
Private access method to the event store.
Definition at line 63 of file MaterialSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 63 of file MaterialSteppingAction.hpp
References ActsExamples::MaterialSteppingAction::Config::eventStore, and m_cfg.
|
inlineprivate |
Private access method to the logging instance.
Definition at line 60 of file MaterialSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 60 of file MaterialSteppingAction.hpp
References m_logger.
|
override |
Action per step to be performed.
step | is the Geant4 step of the particle |
Definition at line 33 of file MaterialSteppingAction.cpp.
View newest version in sPHENIX GitHub at line 33 of file MaterialSteppingAction.cpp
References ACTS_VERBOSE, Acts::MaterialInteraction::direction, Acts::Material::fromMassDensity(), Acts::UnitConstants::g, i, m_cfg(), material, Acts::MaterialInteraction::materialSlab, Acts::UnitConstants::mm, Acts::UnitConstants::mm3, Acts::MaterialInteraction::pathCorrection, Acts::MaterialInteraction::position, rho, trackID, X0, and SVM_v1::Z.
|
private |
Config struct.
Definition at line 57 of file MaterialSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 57 of file MaterialSteppingAction.hpp
Referenced by eventStore().
|
private |
The looging instance.
Definition at line 66 of file MaterialSteppingAction.hpp.
View newest version in sPHENIX GitHub at line 66 of file MaterialSteppingAction.hpp
Referenced by logger().