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

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

+ Inheritance diagram for ActsExamples::CsvSimHitReader:
+ Collaboration diagram for ActsExamples::CsvSimHitReader:

Classes

struct  Config
 

Public Member Functions

 CsvSimHitReader (const Config &config, Acts::Logging::Level level)
 
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
 
std::pair< size_t, size_t > m_eventsRange
 
std::unique_ptr< const
Acts::Logger
m_logger
 
WriteDataHandle< SimHitContainerm_outputSimHits {this, "OutputSimHits"}
 

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 36 of file CsvSimHitReader.hpp.

View newest version in sPHENIX GitHub at line 36 of file CsvSimHitReader.hpp

Constructor & Destructor Documentation

ActsExamples::CsvSimHitReader::CsvSimHitReader ( const Config config,
Acts::Logging::Level  level 
)

Construct the simhit reader.

Parameters
configis the configuration object
levelis the logging level

Definition at line 26 of file CsvSimHitReader.cpp.

View newest version in sPHENIX GitHub at line 26 of file CsvSimHitReader.cpp

References ActsExamples::WriteDataHandle< T >::initialize(), ActsExamples::CsvSimHitReader::Config::inputStem, m_cfg, m_outputSimHits, and ActsExamples::CsvSimHitReader::Config::outputSimHits.

+ Here is the call graph for this function:

Member Function Documentation

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

Return the available events range.

Implements ActsExamples::IReader.

Definition at line 48 of file CsvSimHitReader.cpp.

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

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

Readonly access to the config.

Definition at line 62 of file CsvSimHitReader.hpp.

View newest version in sPHENIX GitHub at line 62 of file CsvSimHitReader.hpp

References m_cfg.

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

Definition at line 71 of file CsvSimHitReader.hpp.

View newest version in sPHENIX GitHub at line 71 of file CsvSimHitReader.hpp

References m_logger.

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

The algorithm name.

Implements ActsExamples::SequenceElement.

Member Data Documentation

Config ActsExamples::CsvSimHitReader::m_cfg
private

Definition at line 65 of file CsvSimHitReader.hpp.

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

Referenced by config(), and CsvSimHitReader().

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

Definition at line 66 of file CsvSimHitReader.hpp.

View newest version in sPHENIX GitHub at line 66 of file CsvSimHitReader.hpp

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

Definition at line 67 of file CsvSimHitReader.hpp.

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

Referenced by logger().

WriteDataHandle<SimHitContainer> ActsExamples::CsvSimHitReader::m_outputSimHits {this, "OutputSimHits"}
private

Definition at line 69 of file CsvSimHitReader.hpp.

View newest version in sPHENIX GitHub at line 69 of file CsvSimHitReader.hpp

Referenced by CsvSimHitReader().


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