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

#include <acts/blob/sPHENIX/Examples/Io/EDM4hep/include/ActsExamples/Io/EDM4hep/EDM4hepParticleReader.hpp>

+ Inheritance diagram for ActsExamples::EDM4hepParticleReader:
+ Collaboration diagram for ActsExamples::EDM4hepParticleReader:

Classes

struct  Config
 

Public Member Functions

 EDM4hepParticleReader (const Config &config, Acts::Logging::Level level)
 
std::string name () const final
 The algorithm name.
 
std::pair< size_t, size_t > availableEvents () const final
 Return the available events range.
 
ProcessCode read (const ActsExamples::AlgorithmContext &ctx) final
 Read out data from the input stream.
 
const Configconfig () const
 Readonly access to the config.
 
- Public Member Functions inherited from ActsExamples::IReader
ProcessCode internalExecute (const AlgorithmContext &context) final
 
ProcessCode initialize () override
 Fulfill the algorithm interface.
 
ProcessCode finalize () override
 Fulfill the algorithm interface.
 
- Public Member Functions inherited from ActsExamples::SequenceElement
virtual ~SequenceElement ()=default
 
const std::vector< const
DataHandleBase * > & 
writeHandles () const
 
const std::vector< const
DataHandleBase * > & 
readHandles () const
 

Private Attributes

Config m_cfg
 
std::pair< size_t, size_t > m_eventsRange
 
std::unique_ptr< const
Acts::Logger
m_logger
 
podio::ROOTFrameReader m_reader
 
WriteDataHandle
< SimParticleContainer
m_outputParticles
 

Detailed Description

Read particles from EDM4hep.

Inpersistent information:

  • particle ID
  • process

Definition at line 29 of file EDM4hepParticleReader.hpp.

View newest version in sPHENIX GitHub at line 29 of file EDM4hepParticleReader.hpp

Constructor & Destructor Documentation

ActsExamples::EDM4hepParticleReader::EDM4hepParticleReader ( const Config config,
Acts::Logging::Level  level 
)

Construct the particle reader.

Parameters
configis the configuration object
levelis the logging level

Definition at line 23 of file EDM4hepParticleReader.cpp.

View newest version in sPHENIX GitHub at line 23 of file EDM4hepParticleReader.cpp

References ActsExamples::WriteDataHandle< T >::initialize(), ActsExamples::EDM4hepParticleReader::Config::inputPath, m_cfg, m_eventsRange, m_outputParticles, m_reader, and ActsExamples::EDM4hepParticleReader::Config::outputParticles.

+ Here is the call graph for this function:

Member Function Documentation

std::pair< size_t, size_t > ActsExamples::EDM4hepParticleReader::availableEvents ( ) const
finalvirtual

Return the available events range.

Implements ActsExamples::IReader.

Definition at line 42 of file EDM4hepParticleReader.cpp.

View newest version in sPHENIX GitHub at line 42 of file EDM4hepParticleReader.cpp

References m_eventsRange.

const Config& ActsExamples::EDM4hepParticleReader::config ( ) const
inline

Readonly access to the config.

Definition at line 55 of file EDM4hepParticleReader.hpp.

View newest version in sPHENIX GitHub at line 55 of file EDM4hepParticleReader.hpp

References m_cfg.

std::string ActsExamples::EDM4hepParticleReader::name ( ) const
finalvirtual

The algorithm name.

Implements ActsExamples::SequenceElement.

Definition at line 38 of file EDM4hepParticleReader.cpp.

View newest version in sPHENIX GitHub at line 38 of file EDM4hepParticleReader.cpp

ProcessCode ActsExamples::EDM4hepParticleReader::read ( const ActsExamples::AlgorithmContext ctx)
finalvirtual

Read out data from the input stream.

Implements ActsExamples::IReader.

Definition at line 46 of file EDM4hepParticleReader.cpp.

View newest version in sPHENIX GitHub at line 46 of file EDM4hepParticleReader.cpp

References ActsExamples::AlgorithmContext::eventNumber, ActsExamples::EDM4hepParticleReader::Config::inputParticles, m_cfg, m_outputParticles, m_reader, testing::internal::move(), merge_hashes::p, particle, particles, ActsExamples::EDM4hepUtil::readParticle(), ActsFatras::Barcode::setParticle(), and SUCCESS.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::EDM4hepParticleReader::m_cfg
private

Definition at line 58 of file EDM4hepParticleReader.hpp.

View newest version in sPHENIX GitHub at line 58 of file EDM4hepParticleReader.hpp

Referenced by config(), EDM4hepParticleReader(), and read().

std::pair<size_t, size_t> ActsExamples::EDM4hepParticleReader::m_eventsRange
private

Definition at line 59 of file EDM4hepParticleReader.hpp.

View newest version in sPHENIX GitHub at line 59 of file EDM4hepParticleReader.hpp

Referenced by availableEvents(), and EDM4hepParticleReader().

std::unique_ptr<const Acts::Logger> ActsExamples::EDM4hepParticleReader::m_logger
private

Definition at line 60 of file EDM4hepParticleReader.hpp.

View newest version in sPHENIX GitHub at line 60 of file EDM4hepParticleReader.hpp

WriteDataHandle<SimParticleContainer> ActsExamples::EDM4hepParticleReader::m_outputParticles
private
Initial value:
{this,
"OutputParticles"}

Definition at line 64 of file EDM4hepParticleReader.hpp.

View newest version in sPHENIX GitHub at line 64 of file EDM4hepParticleReader.hpp

Referenced by EDM4hepParticleReader(), and read().

podio::ROOTFrameReader ActsExamples::EDM4hepParticleReader::m_reader
private

Definition at line 62 of file EDM4hepParticleReader.hpp.

View newest version in sPHENIX GitHub at line 62 of file EDM4hepParticleReader.hpp

Referenced by EDM4hepParticleReader(), and read().


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