ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Examples/Framework/include/ACTFW/Framework/WriterT.hpp>
Public Member Functions | |
WriterT (std::string objectName, std::string writerName, Acts::Logging::Level level) | |
std::string | name () const finaloverride |
Provide the name of the writer. | |
ProcessCode | write (const AlgorithmContext &context) finaloverride |
Read the object and call the type-specific member function. | |
ProcessCode | endRun () override |
No-op default implementation. | |
Public Member Functions inherited from FW::IWriter | |
virtual | ~IWriter ()=default |
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 |
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 overriden by the user.
Definition at line 40 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 40 of file WriterT.hpp
FW::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 77 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 77 of file WriterT.hpp
References FW::WriterT< write_data_t >::m_objectName, and FW::WriterT< write_data_t >::m_writerName.
|
inlineoverridevirtual |
No-op default implementation.
Implements FW::IWriter.
Reimplemented in FW::RootTrackParameterWriter.
Definition at line 96 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 96 of file WriterT.hpp
References SUCCESS.
|
inlineprotected |
Definition at line 66 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 66 of file WriterT.hpp
|
inlinefinaloverridevirtual |
Provide the name of the writer.
Implements FW::IWriter.
Definition at line 91 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 91 of file WriterT.hpp
|
inlinefinaloverridevirtual |
Read the object and call the type-specific member function.
Implements FW::IWriter.
Definition at line 101 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 101 of file WriterT.hpp
References FW::AlgorithmContext::eventStore, and FW::WhiteBoard::get().
|
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 templeted collection to be written |
Implemented in FW::RootMaterialTrackWriter, FW::RootTrajectoryWriter, FW::RootPlanarClusterWriter, FW::RootPropagationStepsWriter, FW::CsvPlanarClusterWriter, FW::RootParticleWriter, FW::RootSimHitWriter, FW::CsvParticleWriter, FW::RootVertexAndTracksWriter, FW::TrackFitterPerformanceWriter, FW::Json::JsonSpacePointWriter< T >, FW::Obj::ObjSpacePointWriter< T >, and FW::TrackFinderPerformanceWriter.
|
private |
Definition at line 71 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 71 of file WriterT.hpp
Referenced by FW::WriterT< TrajectoryContainer >::logger().
|
private |
Definition at line 69 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 69 of file WriterT.hpp
Referenced by FW::WriterT< write_data_t >::WriterT().
|
private |
Definition at line 70 of file WriterT.hpp.
View newest version in sPHENIX GitHub at line 70 of file WriterT.hpp
Referenced by FW::WriterT< write_data_t >::WriterT().