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

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

+ Inheritance diagram for ActsExamples::EDM4hepMeasurementWriter:
+ Collaboration diagram for ActsExamples::EDM4hepMeasurementWriter:

Classes

struct  Config
 

Public Member Functions

 EDM4hepMeasurementWriter (const Config &config, Acts::Logging::Level level)
 
ProcessCode finalize () final
 Finalize the algorithm.
 
const Configconfig () const
 Readonly access to the config.
 
- Public Member Functions inherited from ActsExamples::WriterT< MeasurementContainer >
 WriterT (std::string objectName, std::string writerName, Acts::Logging::Level level)
 
std::string name () const override
 Provide the name of the writer.
 
ProcessCode write (const AlgorithmContext &context) override
 Read the object and call the type-specific member function.
 
ProcessCode finalize () override
 No-op default implementation.
 
- Public Member Functions inherited from ActsExamples::IWriter
ProcessCode internalExecute (const AlgorithmContext &context) final
 
ProcessCode initialize () override
 Fulfil 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
 

Protected Member Functions

ProcessCode writeT (const AlgorithmContext &ctx, const MeasurementContainer &measurements) final
 
- Protected Member Functions inherited from ActsExamples::WriterT< MeasurementContainer >
const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
podio::ROOTFrameWriter m_writer
 
ReadDataHandle< ClusterContainerm_inputClusters {this, "InputClusters"}
 

Detailed Description

Write out a measurement cluster collection to EDM4hep.

Inpersistent information:

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

Known issues:

  • cluster channels are written to inappropriate fields
  • local 2D coordinates and time are written to position

Definition at line 34 of file EDM4hepMeasurementWriter.hpp.

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

Constructor & Destructor Documentation

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

Constructor with

Parameters
configconfiguration struct
levellogging level

Definition at line 23 of file EDM4hepMeasurementWriter.cpp.

View newest version in sPHENIX GitHub at line 23 of file EDM4hepMeasurementWriter.cpp

References ACTS_VERBOSE, ActsExamples::EDM4hepMeasurementWriter::Config::inputClusters, m_cfg, m_inputClusters, ActsExamples::DataHandleBase::maybeInitialize(), and ActsExamples::EDM4hepMeasurementWriter::Config::outputPath.

+ Here is the call graph for this function:

Member Function Documentation

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

Readonly access to the config.

Definition at line 53 of file EDM4hepMeasurementWriter.hpp.

View newest version in sPHENIX GitHub at line 53 of file EDM4hepMeasurementWriter.hpp

References m_cfg.

ActsExamples::ProcessCode ActsExamples::EDM4hepMeasurementWriter::finalize ( )
finalvirtual

Finalize the algorithm.

Implements ActsExamples::SequenceElement.

Definition at line 34 of file EDM4hepMeasurementWriter.cpp.

View newest version in sPHENIX GitHub at line 34 of file EDM4hepMeasurementWriter.cpp

References m_writer, and SUCCESS.

ActsExamples::ProcessCode ActsExamples::EDM4hepMeasurementWriter::writeT ( const AlgorithmContext ctx,
const MeasurementContainer measurements 
)
finalprotectedvirtual

This implementation holds the actual writing method and is called by the WriterT<>::write interface

Parameters
ctxThe Algorithm context with per event information
measurementsis the data to be written out

Implements ActsExamples::WriterT< MeasurementContainer >.

Definition at line 40 of file EDM4hepMeasurementWriter.cpp.

View newest version in sPHENIX GitHub at line 40 of file EDM4hepMeasurementWriter.cpp

References ACTS_VERBOSE, clusters, ActsExamples::EDM4hepMeasurementWriter::Config::inputClusters, m_cfg, m_inputClusters, m_writer, testing::internal::move(), SUCCESS, physmon_ckf_tracking::u, and ActsExamples::EDM4hepUtil::writeMeasurement().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::EDM4hepMeasurementWriter::m_cfg
private

Definition at line 65 of file EDM4hepMeasurementWriter.hpp.

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

Referenced by config(), EDM4hepMeasurementWriter(), and writeT().

ReadDataHandle<ClusterContainer> ActsExamples::EDM4hepMeasurementWriter::m_inputClusters {this, "InputClusters"}
private

Definition at line 69 of file EDM4hepMeasurementWriter.hpp.

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

Referenced by EDM4hepMeasurementWriter(), and writeT().

podio::ROOTFrameWriter ActsExamples::EDM4hepMeasurementWriter::m_writer
private

Definition at line 67 of file EDM4hepMeasurementWriter.hpp.

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

Referenced by finalize(), and writeT().


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