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

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

+ Inheritance diagram for ActsExamples::CsvMeasurementReader:
+ Collaboration diagram for ActsExamples::CsvMeasurementReader:

Classes

struct  Config
 

Public Member Functions

 CsvMeasurementReader (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
< MeasurementContainer
m_outputMeasurements
 
WriteDataHandle< IndexMultimap
< Index > > 
m_outputMeasurementSimHitsMap
 
WriteDataHandle
< GeometryIdMultiset
< IndexSourceLink > > 
m_outputSourceLinks
 
WriteDataHandle< ClusterContainerm_outputClusters {this, "OutputClusters"}
 
WriteDataHandle< IndexMultimap
< ActsFatras::Barcode > > 
m_outputMeasurementParticlesMap {this, "OutputMeasurementParticlesMap"}
 
ReadDataHandle< SimHitContainerm_inputHits {this, "InputHits"}
 

Detailed Description

Read in a measurement cluster collection in comma-separated-value format.

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

event000000001-cells.csv (optional)
event000000001-measurements.csv
event000000001-measurement-simhit-map.csv
event000000002-cells.csv (optional)
event000000002-measurements.csv
event000000001-measurement-simhit-map.csv

and each line in the file corresponds to one hit/cluster.

One file per fevent: thread-safe for parallel event processing.

Definition at line 54 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 54 of file CsvMeasurementReader.hpp

Constructor & Destructor Documentation

Member Function Documentation

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

Return the available events range.

Implements ActsExamples::IReader.

Definition at line 76 of file CsvMeasurementReader.cpp.

View newest version in sPHENIX GitHub at line 76 of file CsvMeasurementReader.cpp

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

Readonly access to the config.

Definition at line 90 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 90 of file CsvMeasurementReader.hpp

References m_cfg.

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

Definition at line 97 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 97 of file CsvMeasurementReader.hpp

References m_logger.

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

The algorithm name.

Implements ActsExamples::SequenceElement.

ActsExamples::ProcessCode ActsExamples::CsvMeasurementReader::read ( const ActsExamples::AlgorithmContext ctx)
overridevirtual

Member Data Documentation

Config ActsExamples::CsvMeasurementReader::m_cfg
private

Definition at line 93 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 93 of file CsvMeasurementReader.hpp

Referenced by config(), and CsvMeasurementReader().

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

Definition at line 94 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 94 of file CsvMeasurementReader.hpp

Referenced by CsvMeasurementReader().

ReadDataHandle<SimHitContainer> ActsExamples::CsvMeasurementReader::m_inputHits {this, "InputHits"}
private

Definition at line 113 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 113 of file CsvMeasurementReader.hpp

Referenced by CsvMeasurementReader().

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

Definition at line 95 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 95 of file CsvMeasurementReader.hpp

Referenced by logger().

WriteDataHandle<ClusterContainer> ActsExamples::CsvMeasurementReader::m_outputClusters {this, "OutputClusters"}
private

Definition at line 108 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 108 of file CsvMeasurementReader.hpp

Referenced by CsvMeasurementReader().

WriteDataHandle<IndexMultimap<ActsFatras::Barcode> > ActsExamples::CsvMeasurementReader::m_outputMeasurementParticlesMap {this, "OutputMeasurementParticlesMap"}
private

Definition at line 111 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 111 of file CsvMeasurementReader.hpp

Referenced by CsvMeasurementReader().

WriteDataHandle<MeasurementContainer> ActsExamples::CsvMeasurementReader::m_outputMeasurements
private
Initial value:
{
this, "OutputMeasurements"}

Definition at line 99 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 99 of file CsvMeasurementReader.hpp

Referenced by CsvMeasurementReader().

WriteDataHandle<IndexMultimap<Index> > ActsExamples::CsvMeasurementReader::m_outputMeasurementSimHitsMap
private
Initial value:
{
this, "OutputMeasurementSimHitsMap"}

Definition at line 102 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 102 of file CsvMeasurementReader.hpp

Referenced by CsvMeasurementReader().

WriteDataHandle<GeometryIdMultiset<IndexSourceLink> > ActsExamples::CsvMeasurementReader::m_outputSourceLinks
private
Initial value:
{
this, "OutputSourceLinks"}

Definition at line 105 of file CsvMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 105 of file CsvMeasurementReader.hpp

Referenced by CsvMeasurementReader().


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