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

Print all particles. More...

#include <acts/blob/sPHENIX/Examples/Algorithms/Printers/ActsExamples/Printers/ParticlesPrinter.hpp>

+ Inheritance diagram for ActsExamples::ParticlesPrinter:
+ Collaboration diagram for ActsExamples::ParticlesPrinter:

Classes

struct  Config
 

Public Member Functions

 ParticlesPrinter (const Config &cfg, Acts::Logging::Level lvl)
 
ProcessCode execute (const AlgorithmContext &ctx) const override
 
const Configconfig () 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::Loggerlogger () const
 

Detailed Description

Print all particles.

Definition at line 23 of file ParticlesPrinter.hpp.

View newest version in sPHENIX GitHub at line 23 of file ParticlesPrinter.hpp

Constructor & Destructor Documentation

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.

+ Here is the call graph for this function:

Member Function Documentation

const Config& ActsExamples::ParticlesPrinter::config ( ) const
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.

ActsExamples::ProcessCode ActsExamples::ParticlesPrinter::execute ( const AlgorithmContext context) const
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.

+ Here is the call graph for this function:

Member Data Documentation

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

ReadDataHandle<SimParticleContainer> ActsExamples::ParticlesPrinter::m_inputParticles {this, "InputParticles"}
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().


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