Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Framework/WriterT.hpp>
Public Member Functions | |
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 | |
virtual ProcessCode | writeT (const AlgorithmContext &context, const write_data_t &t)=0 |
const Acts::Logger & | logger () const |
Private Attributes | |
std::string | m_objectName |
std::string | m_writerName |
std::unique_ptr< const Acts::Logger > | m_logger |
ReadDataHandle< write_data_t > | m_inputHandle {this, "InputHandle"} |
A helper class for users to implement framework writers.
IWriter
substitute. This class should only be used as the base class for a concrete writer implementation.T | The object type read from the event store |
This class can be used when a writer reads a single object from the event store and writes it to file. Reading from the event store and casting to the specified type is done automatically and the user only needs to implement the type-specific write method.
Default no-op implementations for initialize
and finalize
are provided but can be overridden by the user.
Definition at line 47 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 47 of file WriterT.hpp
ActsExamples::WriterT< write_data_t >::WriterT | ( | std::string | objectName, |
std::string | writerName, | ||
Acts::Logging::Level | level | ||
) |
objectName | The object that should be read from the event store |
writerName | The name of the writer, e.g. for logging output |
level | The internal log level |
Definition at line 86 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 86 of file WriterT.hpp
References ActsExamples::ReadDataHandle< T >::initialize(), ActsExamples::WriterT< write_data_t >::m_inputHandle, ActsExamples::WriterT< write_data_t >::m_objectName, and ActsExamples::WriterT< write_data_t >::m_writerName.
|
inlineoverridevirtual |
No-op default implementation.
Implements ActsExamples::SequenceElement.
Reimplemented in ActsExamples::RootTrackParameterWriter.
Definition at line 108 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 108 of file WriterT.hpp
References SUCCESS.
|
inlineprotected |
Definition at line 73 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 73 of file WriterT.hpp
|
inlineoverridevirtual |
Provide the name of the writer.
Implements ActsExamples::SequenceElement.
Definition at line 102 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 102 of file WriterT.hpp
|
inlineoverridevirtual |
Read the object and call the type-specific member function.
Implements ActsExamples::IWriter.
Definition at line 113 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 113 of file WriterT.hpp
|
protectedpure virtual |
Type-specific write function implementation this method is implemented in the user implementation
[in] | context | is the algorithm context that guarantees event consistency |
[in] | is the templated collection to be written |
Implemented in ActsExamples::RootMeasurementWriter, ActsExamples::SvgPointWriter< T, Acc >, ActsExamples::RootMaterialTrackWriter, ActsExamples::RootTrajectoryStatesWriter, ActsExamples::RootTrajectorySummaryWriter, ActsExamples::CKFPerformanceWriter, ActsExamples::RootPlanarClusterWriter, ActsExamples::CsvMeasurementWriter, ActsExamples::CsvPlanarClusterWriter, ActsExamples::CsvMultiTrajectoryWriter, ActsExamples::TrackFitterPerformanceWriter, ActsExamples::RootNuclearInteractionParametersWriter, ActsExamples::RootPropagationStepsWriter, ActsExamples::CsvSpacepointWriter, ActsExamples::SeedingPerformanceWriter, ActsExamples::RootParticleWriter, ActsExamples::RootSpacepointWriter, ActsExamples::RootSimHitWriter, ActsExamples::CsvParticleWriter, ActsExamples::EDM4hepMultiTrajectoryWriter, ActsExamples::CsvSimHitWriter, ActsExamples::EDM4hepSimHitWriter, ActsExamples::CsvProtoTrackWriter, ActsExamples::EDM4hepMeasurementWriter, ActsExamples::TrackFinderPerformanceWriter, ActsExamples::EDM4hepTrackWriter, ActsExamples::EDM4hepParticleWriter, ActsExamples::JsonSpacePointWriter< T >, ActsExamples::HepMC3AsciiWriter, and ActsExamples::ObjSpacePointWriter< T >.
|
private |
Definition at line 80 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 80 of file WriterT.hpp
Referenced by ActsExamples::WriterT< write_data_t >::WriterT().
|
private |
Definition at line 78 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 78 of file WriterT.hpp
Referenced by ActsExamples::WriterT< MeasurementContainer >::logger().
|
private |
Definition at line 76 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 76 of file WriterT.hpp
Referenced by ActsExamples::WriterT< write_data_t >::WriterT().
|
private |
Definition at line 77 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 77 of file WriterT.hpp
Referenced by ActsExamples::WriterT< write_data_t >::WriterT().