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

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

+ Inheritance diagram for ActsExamples::EDM4hepMeasurementReader:
+ Collaboration diagram for ActsExamples::EDM4hepMeasurementReader:

Classes

struct  Config
 

Public Member Functions

 EDM4hepMeasurementReader (const Config &config, Acts::Logging::Level level)
 
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.
 
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 Attributes

Config m_cfg
 
std::pair< size_t, size_t > m_eventsRange
 
std::unique_ptr< const
Acts::Logger
m_logger
 
podio::ROOTFrameReader m_reader
 
WriteDataHandle
< MeasurementContainer
m_outputMeasurements
 
WriteDataHandle< IndexMultimap
< Index > > 
m_outputMeasurementSimHitsMap
 
WriteDataHandle
< GeometryIdMultiset
< IndexSourceLink > > 
m_outputSourceLinks
 
WriteDataHandle< ClusterContainerm_outputClusters {this, "OutputClusters"}
 

Detailed Description

Read in a measurement cluster collection from EDM4hep.

Inpersistent information:

  • hit index
  • 1D local coords?
  • segment path

Known issues:

  • cluster channels are read from inappropriate fields
  • local 2D coordinates and time are read from position

Definition at line 34 of file EDM4hepMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 34 of file EDM4hepMeasurementReader.hpp

Constructor & Destructor Documentation

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

Member Function Documentation

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

Return the available events range.

Implements ActsExamples::IReader.

Definition at line 50 of file EDM4hepMeasurementReader.cpp.

View newest version in sPHENIX GitHub at line 50 of file EDM4hepMeasurementReader.cpp

References m_eventsRange.

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

Readonly access to the config.

Definition at line 64 of file EDM4hepMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 64 of file EDM4hepMeasurementReader.hpp

References m_cfg.

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

The algorithm name.

Implements ActsExamples::SequenceElement.

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

Read out data from the input stream.

Implements ActsExamples::IReader.

Definition at line 54 of file EDM4hepMeasurementReader.cpp.

View newest version in sPHENIX GitHub at line 54 of file EDM4hepMeasurementReader.cpp

References clusters, ActsExamples::AlgorithmContext::eventNumber, m_cfg, m_outputClusters, m_outputMeasurements, m_outputMeasurementSimHitsMap, m_outputSourceLinks, m_reader, testing::internal::move(), ActsExamples::EDM4hepMeasurementReader::Config::outputClusters, ActsExamples::EDM4hepUtil::readMeasurement(), and SUCCESS.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::EDM4hepMeasurementReader::m_cfg
private

Definition at line 67 of file EDM4hepMeasurementReader.hpp.

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

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

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

Definition at line 68 of file EDM4hepMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 68 of file EDM4hepMeasurementReader.hpp

Referenced by availableEvents(), and EDM4hepMeasurementReader().

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

Definition at line 69 of file EDM4hepMeasurementReader.hpp.

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

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

Definition at line 82 of file EDM4hepMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 82 of file EDM4hepMeasurementReader.hpp

Referenced by EDM4hepMeasurementReader(), and read().

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

Definition at line 73 of file EDM4hepMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 73 of file EDM4hepMeasurementReader.hpp

Referenced by EDM4hepMeasurementReader(), and read().

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

Definition at line 76 of file EDM4hepMeasurementReader.hpp.

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

Referenced by EDM4hepMeasurementReader(), and read().

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

Definition at line 79 of file EDM4hepMeasurementReader.hpp.

View newest version in sPHENIX GitHub at line 79 of file EDM4hepMeasurementReader.hpp

Referenced by EDM4hepMeasurementReader(), and read().

podio::ROOTFrameReader ActsExamples::EDM4hepMeasurementReader::m_reader
private

Definition at line 71 of file EDM4hepMeasurementReader.hpp.

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

Referenced by EDM4hepMeasurementReader(), and read().


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