Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/Geant4/ParticleKillAction.hpp>
Classes | |
struct | Config |
Configuration of the Stepping action. More... | |
Public Member Functions | |
ParticleKillAction (const Config &cfg, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("ParticleKillAction", Acts::Logging::INFO)) | |
~ParticleKillAction () override=default | |
void | UserSteppingAction (const G4Step *step) override |
Called every step, conditionally sets the tracking state to fStopAndKill | |
Private Member Functions | |
const Acts::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
std::unique_ptr< const Acts::Logger > | m_logger |
A G4SteppingAction that is called for every step in the simulation process.
It checks whether the particle can be killed according to the user settings e.g. if its position exceeds the configured values for |z| or r.
Definition at line 30 of file ParticleKillAction.hpp.
View newest version in sPHENIX GitHub at line 30 of file ParticleKillAction.hpp
ActsExamples::ParticleKillAction::ParticleKillAction | ( | const Config & | cfg, |
std::unique_ptr< const Acts::Logger > | logger = Acts::getDefaultLogger("ParticleKillAction", Acts::Logging::INFO) |
||
) |
Construct the stepping action
cfg | the configuration struct |
logger | the ACTS logging instance |
Definition at line 25 of file ParticleKillAction.cpp.
View newest version in sPHENIX GitHub at line 25 of file ParticleKillAction.cpp
|
overridedefault |
|
inlineprivate |
Definition at line 57 of file ParticleKillAction.hpp.
View newest version in sPHENIX GitHub at line 57 of file ParticleKillAction.hpp
References m_logger.
|
override |
Called every step, conditionally sets the tracking state to fStopAndKill
step | is the Geant4 step of the particle |
Definition at line 29 of file ParticleKillAction.cpp.
View newest version in sPHENIX GitHub at line 29 of file ParticleKillAction.cpp
References ACTS_DEBUG, m_cfg(), Acts::UnitConstants::mm, Acts::UnitConstants::ns, Acts::Test::pos, and Acts::Test::time.
|
private |
Definition at line 59 of file ParticleKillAction.hpp.
View newest version in sPHENIX GitHub at line 59 of file ParticleKillAction.hpp
|
private |
Definition at line 60 of file ParticleKillAction.hpp.
View newest version in sPHENIX GitHub at line 60 of file ParticleKillAction.hpp
Referenced by logger().