Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/EDM4hep/include/ActsExamples/Io/EDM4hep/EDM4hepMeasurementReader.hpp>
Classes | |
struct | Config |
Public Member Functions | |
EDM4hepMeasurementReader (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 < MeasurementContainer > | m_outputMeasurements |
WriteDataHandle< IndexMultimap < Index > > | m_outputMeasurementSimHitsMap |
WriteDataHandle < GeometryIdMultiset < IndexSourceLink > > | m_outputSourceLinks |
WriteDataHandle< ClusterContainer > | m_outputClusters {this, "OutputClusters"} |
Read in a measurement cluster collection from EDM4hep.
Inpersistent information:
Known issues:
Definition at line 34 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 34 of file EDM4hepMeasurementReader.hpp
ActsExamples::EDM4hepMeasurementReader::EDM4hepMeasurementReader | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Construct the cluster reader.
config | is the configuration object |
level | is the logging level |
Definition at line 28 of file EDM4hepMeasurementReader.cpp.
View newest version in sPHENIX GitHub at line 28 of file EDM4hepMeasurementReader.cpp
References ActsExamples::WriteDataHandle< T >::initialize(), ActsExamples::EDM4hepMeasurementReader::Config::inputPath, m_cfg, m_eventsRange, m_outputClusters, m_outputMeasurements, m_outputMeasurementSimHitsMap, m_outputSourceLinks, m_reader, ActsExamples::DataHandleBase::maybeInitialize(), ActsExamples::EDM4hepMeasurementReader::Config::outputClusters, ActsExamples::EDM4hepMeasurementReader::Config::outputMeasurements, ActsExamples::EDM4hepMeasurementReader::Config::outputMeasurementSimHitsMap, and ActsExamples::EDM4hepMeasurementReader::Config::outputSourceLinks.
|
finalvirtual |
Return the available events range.
Implements ActsExamples::IReader.
Definition at line 50 of file EDM4hepMeasurementReader.cpp.
View newest version in sPHENIX GitHub at line 50 of file EDM4hepMeasurementReader.cpp
References m_eventsRange.
|
inline |
Readonly access to the config.
Definition at line 64 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 64 of file EDM4hepMeasurementReader.hpp
References m_cfg.
|
finalvirtual |
The algorithm name.
Implements ActsExamples::SequenceElement.
|
finalvirtual |
Read out data from the input stream.
Implements ActsExamples::IReader.
Definition at line 54 of file EDM4hepMeasurementReader.cpp.
View newest version in sPHENIX GitHub at line 54 of file EDM4hepMeasurementReader.cpp
References clusters, ActsExamples::AlgorithmContext::eventNumber, m_cfg, m_outputClusters, m_outputMeasurements, m_outputMeasurementSimHitsMap, m_outputSourceLinks, m_reader, testing::internal::move(), ActsExamples::EDM4hepMeasurementReader::Config::outputClusters, ActsExamples::EDM4hepUtil::readMeasurement(), and SUCCESS.
|
private |
Definition at line 67 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 67 of file EDM4hepMeasurementReader.hpp
Referenced by config(), EDM4hepMeasurementReader(), and read().
|
private |
Definition at line 68 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 68 of file EDM4hepMeasurementReader.hpp
Referenced by availableEvents(), and EDM4hepMeasurementReader().
|
private |
Definition at line 69 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 69 of file EDM4hepMeasurementReader.hpp
|
private |
Definition at line 82 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 82 of file EDM4hepMeasurementReader.hpp
Referenced by EDM4hepMeasurementReader(), and read().
|
private |
Definition at line 73 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 73 of file EDM4hepMeasurementReader.hpp
Referenced by EDM4hepMeasurementReader(), and read().
|
private |
Definition at line 76 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 76 of file EDM4hepMeasurementReader.hpp
Referenced by EDM4hepMeasurementReader(), and read().
|
private |
Definition at line 79 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 79 of file EDM4hepMeasurementReader.hpp
Referenced by EDM4hepMeasurementReader(), and read().
|
private |
Definition at line 71 of file EDM4hepMeasurementReader.hpp.
View newest version in sPHENIX GitHub at line 71 of file EDM4hepMeasurementReader.hpp
Referenced by EDM4hepMeasurementReader(), and read().