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

Collects the RecordedMaterialSlab entities. More...

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

+ Inheritance diagram for ActsExamples::MaterialSteppingAction:
+ Collaboration diagram for ActsExamples::MaterialSteppingAction:

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::Loggerlogger () const
 Private access method to the logging instance.
 
EventStoreeventStore () 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.
 

Detailed Description

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

Constructor & Destructor Documentation

ActsExamples::MaterialSteppingAction::MaterialSteppingAction ( const Config cfg,
std::unique_ptr< const Acts::Logger logger = Acts::getDefaultLogger("SimParticleTranslation",                                                    Acts::Logging::INFO) 
)

Construct the action

Parameters
cfgthe configuration struct for this Stepping action
loggeris 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

ActsExamples::MaterialSteppingAction::~MaterialSteppingAction ( )
overridedefault

Member Function Documentation

EventStore& ActsExamples::MaterialSteppingAction::eventStore ( ) const
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.

const Acts::Logger& ActsExamples::MaterialSteppingAction::logger ( ) const
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.

void ActsExamples::MaterialSteppingAction::UserSteppingAction ( const G4Step *  step)
override

Action per step to be performed.

Parameters
stepis 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.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::MaterialSteppingAction::m_cfg
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().

std::unique_ptr<const Acts::Logger> ActsExamples::MaterialSteppingAction::m_logger
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().


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