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

#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvSpacePointReader.hpp>

+ Inheritance diagram for ActsExamples::CsvSpacePointReader:
+ Collaboration diagram for ActsExamples::CsvSpacePointReader:

Classes

struct  Config
 

Public Member Functions

 CsvSpacePointReader (const Config &cfg, Acts::Logging::Level lvl)
 
std::string name () const override
 The algorithm name.
 
std::pair< size_t, size_t > availableEvents () const override
 Return the available events range.
 
ProcessCode read (const ActsExamples::AlgorithmContext &ctx) override
 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 Member Functions

const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
WriteDataHandle
< SimSpacePointContainer
m_outputSpacePoints
 
std::pair< size_t, size_t > m_eventsRange
 
std::unique_ptr< const
Acts::Logger
m_logger
 

Detailed Description

Read in a simhit collection in comma-separated-value format.

This reads one files per event in the configured input directory. By default it reads files in the current working directory. Files are assumed to be named using the following schema

event000000001-<stem>.csv
event000000002-<stem>.csv

and each line in the file corresponds to one simhit.

Definition at line 37 of file CsvSpacePointReader.hpp.

View newest version in sPHENIX GitHub at line 37 of file CsvSpacePointReader.hpp

Constructor & Destructor Documentation

ActsExamples::CsvSpacePointReader::CsvSpacePointReader ( const Config cfg,
Acts::Logging::Level  lvl 
)

Construct the simhit reader.

cfg is the configuration object lvl is the logging level

Definition at line 27 of file CsvSpacePointReader.cpp.

View newest version in sPHENIX GitHub at line 27 of file CsvSpacePointReader.cpp

References cfg, ActsExamples::determineEventFilesRange(), filename, Acts::getDefaultLogger(), ActsExamples::WriteDataHandle< T >::initialize(), ActsExamples::CsvSpacePointReader::Config::inputCollection, ActsExamples::CsvSpacePointReader::Config::inputDir, ActsExamples::CsvSpacePointReader::Config::inputStem, m_cfg, m_eventsRange, m_logger, m_outputSpacePoints, and ActsExamples::CsvSpacePointReader::Config::outputSpacePoints.

+ Here is the call graph for this function:

Member Function Documentation

std::pair< size_t, size_t > ActsExamples::CsvSpacePointReader::availableEvents ( ) const
overridevirtual

Return the available events range.

Implements ActsExamples::IReader.

Definition at line 48 of file CsvSpacePointReader.cpp.

View newest version in sPHENIX GitHub at line 48 of file CsvSpacePointReader.cpp

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

Readonly access to the config.

Definition at line 67 of file CsvSpacePointReader.hpp.

View newest version in sPHENIX GitHub at line 67 of file CsvSpacePointReader.hpp

References m_cfg.

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

Definition at line 78 of file CsvSpacePointReader.hpp.

View newest version in sPHENIX GitHub at line 78 of file CsvSpacePointReader.hpp

References m_logger.

std::string ActsExamples::CsvSpacePointReader::name ( ) const
overridevirtual

The algorithm name.

Implements ActsExamples::SequenceElement.

Member Data Documentation

Config ActsExamples::CsvSpacePointReader::m_cfg
private

Definition at line 70 of file CsvSpacePointReader.hpp.

View newest version in sPHENIX GitHub at line 70 of file CsvSpacePointReader.hpp

Referenced by config(), and CsvSpacePointReader().

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

Definition at line 75 of file CsvSpacePointReader.hpp.

View newest version in sPHENIX GitHub at line 75 of file CsvSpacePointReader.hpp

Referenced by CsvSpacePointReader().

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

Definition at line 76 of file CsvSpacePointReader.hpp.

View newest version in sPHENIX GitHub at line 76 of file CsvSpacePointReader.hpp

Referenced by CsvSpacePointReader(), and logger().

WriteDataHandle<SimSpacePointContainer> ActsExamples::CsvSpacePointReader::m_outputSpacePoints
private
Initial value:
{
this, "OutputSpacePoints"}

Definition at line 72 of file CsvSpacePointReader.hpp.

View newest version in sPHENIX GitHub at line 72 of file CsvSpacePointReader.hpp

Referenced by CsvSpacePointReader().


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