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

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

+ Inheritance diagram for ActsExamples::EDM4hepTrackReader:
+ Collaboration diagram for ActsExamples::EDM4hepTrackReader:

Classes

struct  Config
 

Public Member Functions

 EDM4hepTrackReader (const Config &config, Acts::Logging::Level level=Acts::Logging::INFO)
 
const Configconfig () const
 Readonly access to the config.
 
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.
 
- 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 Member Functions

const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
WriteDataHandle
< ConstTrackContainer
m_outputTracks {this, "OutputTracks"}
 
podio::ROOTFrameReader m_reader
 
std::unique_ptr< const
Acts::Logger
m_logger
 

Detailed Description

Definition at line 25 of file EDM4hepTrackReader.hpp.

View newest version in sPHENIX GitHub at line 25 of file EDM4hepTrackReader.hpp

Constructor & Destructor Documentation

ActsExamples::EDM4hepTrackReader::EDM4hepTrackReader ( const Config config,
Acts::Logging::Level  level = Acts::Logging::INFO 
)

constructor

Parameters
configis the configuration object
levelis the output logging level

Definition at line 21 of file EDM4hepTrackReader.cpp.

View newest version in sPHENIX GitHub at line 21 of file EDM4hepTrackReader.cpp

References ActsExamples::WriteDataHandle< T >::initialize(), ActsExamples::EDM4hepTrackReader::Config::inputPath, m_cfg, m_outputTracks, m_reader, and ActsExamples::EDM4hepTrackReader::Config::outputTracks.

+ Here is the call graph for this function:

Member Function Documentation

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

Return the available events range.

Implements ActsExamples::IReader.

Definition at line 34 of file EDM4hepTrackReader.cpp.

View newest version in sPHENIX GitHub at line 34 of file EDM4hepTrackReader.cpp

References m_reader.

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

Readonly access to the config.

Definition at line 46 of file EDM4hepTrackReader.hpp.

View newest version in sPHENIX GitHub at line 46 of file EDM4hepTrackReader.hpp

References m_cfg.

const Acts::Logger& ActsExamples::EDM4hepTrackReader::logger ( ) const
inlineprivate

Definition at line 65 of file EDM4hepTrackReader.hpp.

View newest version in sPHENIX GitHub at line 65 of file EDM4hepTrackReader.hpp

References m_logger.

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

The algorithm name.

Implements ActsExamples::SequenceElement.

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

Read out data from the input stream.

Implements ActsExamples::IReader.

Definition at line 42 of file EDM4hepTrackReader.cpp.

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

References ActsExamples::EDM4hepTrackReader::Config::Bz, ActsExamples::AlgorithmContext::eventNumber, ActsExamples::EDM4hepTrackReader::Config::inputTracks, m_cfg, m_outputTracks, m_reader, testing::internal::move(), Acts::EDM4hepUtil::readTrack(), SUCCESS, and tracks().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::EDM4hepTrackReader::m_cfg
private

Definition at line 57 of file EDM4hepTrackReader.hpp.

View newest version in sPHENIX GitHub at line 57 of file EDM4hepTrackReader.hpp

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

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

Definition at line 63 of file EDM4hepTrackReader.hpp.

View newest version in sPHENIX GitHub at line 63 of file EDM4hepTrackReader.hpp

Referenced by logger().

WriteDataHandle<ConstTrackContainer> ActsExamples::EDM4hepTrackReader::m_outputTracks {this, "OutputTracks"}
private

Definition at line 59 of file EDM4hepTrackReader.hpp.

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

Referenced by EDM4hepTrackReader(), and read().

podio::ROOTFrameReader ActsExamples::EDM4hepTrackReader::m_reader
private

Definition at line 61 of file EDM4hepTrackReader.hpp.

View newest version in sPHENIX GitHub at line 61 of file EDM4hepTrackReader.hpp

Referenced by availableEvents(), EDM4hepTrackReader(), and read().


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