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

#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Framework/IReader.hpp>

+ Inheritance diagram for ActsExamples::IReader:
+ Collaboration diagram for ActsExamples::IReader:

Public Member Functions

virtual std::pair< size_t, size_t > availableEvents () const =0
 
virtual ProcessCode read (const AlgorithmContext &context)=0
 
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
 
virtual std::string name () const =0
 The algorithm name.
 
const std::vector< const
DataHandleBase * > & 
writeHandles () const
 
const std::vector< const
DataHandleBase * > & 
readHandles () const
 

Detailed Description

Event data reader interface.

Read data from disk and add it to the event store. The reader can have internal state and implementations are responsible to handle concurrent calls.

Definition at line 25 of file IReader.hpp.

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

Member Function Documentation

ProcessCode ActsExamples::IReader::finalize ( )
inlineoverridevirtual

Fulfill the algorithm interface.

Implements ActsExamples::SequenceElement.

Definition at line 49 of file IReader.hpp.

View newest version in sPHENIX GitHub at line 49 of file IReader.hpp

References SUCCESS.

Referenced by BOOST_AUTO_TEST_CASE().

+ Here is the caller graph for this function:

ProcessCode ActsExamples::IReader::initialize ( )
inlineoverridevirtual

Fulfill the algorithm interface.

Implements ActsExamples::SequenceElement.

Definition at line 46 of file IReader.hpp.

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

References SUCCESS.

ProcessCode ActsExamples::IReader::internalExecute ( const AlgorithmContext context)
inlinefinalvirtual

Internal execute method forwards to the read method as mutable

Parameters
contextThe algorithm context

Implements ActsExamples::SequenceElement.

Definition at line 41 of file IReader.hpp.

View newest version in sPHENIX GitHub at line 41 of file IReader.hpp

References read().

+ Here is the call graph for this function:

virtual ProcessCode ActsExamples::IReader::read ( const AlgorithmContext context)
pure virtual

Read data for the requested event and write it into the event store.

As a result of the parallelization and/or skipping events, this method will most likely not be called in order. Implementations must use the event number provided to select the proper data to be read.

Implemented in ActsExamples::RootAthenaNTupleReader, ActsExamples::EventGenerator, ActsExamples::CsvMeasurementReader, ActsExamples::CsvPlanarClusterReader, ActsExamples::RootMaterialTrackReader, ActsExamples::RootTrajectorySummaryReader, ActsExamples::RootParticleReader, ActsExamples::RootSimHitReader, ActsExamples::CsvSpacePointReader, ActsExamples::EDM4hepSimHitReader, ActsExamples::CsvTrackParameterReader, ActsExamples::EDM4hepMeasurementReader, ActsExamples::CsvSimHitReader, ActsExamples::CsvParticleReader, ActsExamples::HepMC3AsciiReader, ActsExamples::EDM4hepTrackReader, and ActsExamples::EDM4hepParticleReader.

Referenced by internalExecute().

+ Here is the caller graph for this function:


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