Analysis Software
Documentation for sPHENIX simulation software
|
Print all particles. More...
#include <acts/blob/sPHENIX/Examples/Algorithms/Printers/ActsExamples/Printers/ParticlesPrinter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
ParticlesPrinter (const Config &cfg, Acts::Logging::Level lvl) | |
ProcessCode | execute (const AlgorithmContext &ctx) const override |
const Config & | config () 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. | |
Private Attributes | |
Config | m_cfg |
ReadDataHandle < SimParticleContainer > | m_inputParticles {this, "InputParticles"} |
Additional Inherited Members | |
Protected Member Functions inherited from ActsExamples::IAlgorithm | |
const Acts::Logger & | logger () const |
Print all particles.
Definition at line 23 of file ParticlesPrinter.hpp.
View newest version in sPHENIX GitHub at line 23 of file ParticlesPrinter.hpp
ActsExamples::ParticlesPrinter::ParticlesPrinter | ( | const Config & | cfg, |
Acts::Logging::Level | lvl | ||
) |
Definition at line 22 of file ParticlesPrinter.cpp.
View newest version in sPHENIX GitHub at line 22 of file ParticlesPrinter.cpp
References ActsExamples::ReadDataHandle< T >::initialize(), ActsExamples::ParticlesPrinter::Config::inputParticles, m_cfg, and m_inputParticles.
|
inline |
Definition at line 34 of file ParticlesPrinter.hpp.
View newest version in sPHENIX GitHub at line 34 of file ParticlesPrinter.hpp
References m_cfg.
|
overridevirtual |
Execute the algorithm for one event.
This function must be implemented by subclasses.
Implements ActsExamples::IAlgorithm.
Definition at line 32 of file ParticlesPrinter.cpp.
View newest version in sPHENIX GitHub at line 32 of file ParticlesPrinter.cpp
References ACTS_INFO, ActsExamples::AlgorithmContext::eventNumber, m_cfg(), particle, particles, and SUCCESS.
|
private |
Definition at line 37 of file ParticlesPrinter.hpp.
View newest version in sPHENIX GitHub at line 37 of file ParticlesPrinter.hpp
Referenced by config(), and ParticlesPrinter().
|
private |
Definition at line 39 of file ParticlesPrinter.hpp.
View newest version in sPHENIX GitHub at line 39 of file ParticlesPrinter.hpp
Referenced by ParticlesPrinter().