Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/EDM4hep/include/ActsExamples/Io/EDM4hep/EDM4hepMeasurementWriter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
EDM4hepMeasurementWriter (const Config &config, Acts::Logging::Level level) | |
ProcessCode | finalize () final |
Finalize the algorithm. | |
const Config & | config () 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::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
podio::ROOTFrameWriter | m_writer |
ReadDataHandle< ClusterContainer > | m_inputClusters {this, "InputClusters"} |
Write out a measurement cluster collection to EDM4hep.
Inpersistent information:
Known issues:
Definition at line 34 of file EDM4hepMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 34 of file EDM4hepMeasurementWriter.hpp
ActsExamples::EDM4hepMeasurementWriter::EDM4hepMeasurementWriter | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Constructor with
config | configuration struct |
level | logging 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.
|
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.
|
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
|
finalprotectedvirtual |
This implementation holds the actual writing method and is called by the WriterT<>::write interface
ctx | The Algorithm context with per event information |
measurements | is 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().
|
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().
|
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().
|
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().