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

#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvProtoTrackWriter.hpp>

+ Inheritance diagram for ActsExamples::CsvProtoTrackWriter:
+ Collaboration diagram for ActsExamples::CsvProtoTrackWriter:

Classes

struct  Config
 

Public Member Functions

 CsvProtoTrackWriter (const Config &config, Acts::Logging::Level level)
 
 ~CsvProtoTrackWriter () override
 Virtual destructor.
 
ProcessCode finalize () override
 End-of-run hook.
 
const Configconfig () const
 Get readonly access to the config parameters.
 
- Public Member Functions inherited from ActsExamples::WriterT< ProtoTrackContainer >
 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 ProtoTrackContainer &tracks) override
 
- Protected Member Functions inherited from ActsExamples::WriterT< ProtoTrackContainer >
const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
ReadDataHandle
< SimSpacePointContainer
m_inputSpacepoints
 

Detailed Description

Definition at line 28 of file CsvProtoTrackWriter.hpp.

View newest version in sPHENIX GitHub at line 28 of file CsvProtoTrackWriter.hpp

Constructor & Destructor Documentation

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

Constructor with

Parameters
configconfiguration struct
levellogging level

Definition at line 29 of file CsvProtoTrackWriter.cpp.

View newest version in sPHENIX GitHub at line 29 of file CsvProtoTrackWriter.cpp

References ActsExamples::ReadDataHandle< T >::initialize(), ActsExamples::CsvProtoTrackWriter::Config::inputSpacepoints, m_cfg, and m_inputSpacepoints.

+ Here is the call graph for this function:

ActsExamples::CsvProtoTrackWriter::~CsvProtoTrackWriter ( )
overridedefault

Virtual destructor.

Member Function Documentation

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

Get readonly access to the config parameters.

Definition at line 53 of file CsvProtoTrackWriter.hpp.

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

References m_cfg.

ActsExamples::ProcessCode ActsExamples::CsvProtoTrackWriter::finalize ( )
overridevirtual

End-of-run hook.

Implements ActsExamples::SequenceElement.

Definition at line 39 of file CsvProtoTrackWriter.cpp.

View newest version in sPHENIX GitHub at line 39 of file CsvProtoTrackWriter.cpp

References SUCCESS.

ActsExamples::ProcessCode ActsExamples::CsvProtoTrackWriter::writeT ( const AlgorithmContext ctx,
const ProtoTrackContainer tracks 
)
overrideprotectedvirtual

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< ProtoTrackContainer >.

Definition at line 44 of file CsvProtoTrackWriter.cpp.

View newest version in sPHENIX GitHub at line 44 of file CsvProtoTrackWriter.cpp

References ACTS_WARNING, ActsExamples::AlgorithmContext::eventNumber, ActsExamples::findSpacePointForIndex(), m_cfg(), path, ActsExamples::perEventFilepath(), SUCCESS, and writer.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::CsvProtoTrackWriter::m_cfg
private

Definition at line 65 of file CsvProtoTrackWriter.hpp.

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

Referenced by config(), and CsvProtoTrackWriter().

ReadDataHandle<SimSpacePointContainer> ActsExamples::CsvProtoTrackWriter::m_inputSpacepoints
private
Initial value:
{this,
"inputSpacepoints"}

Definition at line 67 of file CsvProtoTrackWriter.hpp.

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

Referenced by CsvProtoTrackWriter().


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