Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/EDM4hep/include/ActsExamples/Io/EDM4hep/EDM4hepParticleReader.hpp>
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 Config & | config () 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 |
Read particles from EDM4hep.
Inpersistent information:
Definition at line 29 of file EDM4hepParticleReader.hpp.
View newest version in sPHENIX GitHub at line 29 of file EDM4hepParticleReader.hpp
ActsExamples::EDM4hepParticleReader::EDM4hepParticleReader | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Construct the particle reader.
config | is the configuration object |
level | is 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.
|
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.
|
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.
|
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
|
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.
|
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().
|
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().
|
private |
Definition at line 60 of file EDM4hepParticleReader.hpp.
View newest version in sPHENIX GitHub at line 60 of file EDM4hepParticleReader.hpp
|
private |
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().
|
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().