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

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

+ Inheritance diagram for ActsExamples::CsvSpacepointWriter:
+ Collaboration diagram for ActsExamples::CsvSpacepointWriter:

Classes

struct  Config
 

Public Member Functions

 CsvSpacepointWriter (const Config &config, Acts::Logging::Level level)
 
 ~CsvSpacepointWriter () 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< SimSpacePointContainer >
 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 SimSpacePointContainer &spacepoints) override
 
- Protected Member Functions inherited from ActsExamples::WriterT< SimSpacePointContainer >
const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 

Detailed Description

Definition at line 38 of file CsvSpacepointWriter.hpp.

View newest version in sPHENIX GitHub at line 38 of file CsvSpacepointWriter.hpp

Constructor & Destructor Documentation

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

Constructor with

Parameters
configconfiguration struct
levellogging level

Definition at line 28 of file CsvSpacePointWriter.cpp.

View newest version in sPHENIX GitHub at line 28 of file CsvSpacePointWriter.cpp

ActsExamples::CsvSpacepointWriter::~CsvSpacepointWriter ( )
overridedefault

Virtual destructor.

Member Function Documentation

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

Get readonly access to the config parameters.

Definition at line 61 of file CsvSpacepointWriter.hpp.

View newest version in sPHENIX GitHub at line 61 of file CsvSpacepointWriter.hpp

References m_cfg.

ActsExamples::ProcessCode ActsExamples::CsvSpacepointWriter::finalize ( )
overridevirtual

End-of-run hook.

Implements ActsExamples::SequenceElement.

Definition at line 36 of file CsvSpacePointWriter.cpp.

View newest version in sPHENIX GitHub at line 36 of file CsvSpacePointWriter.cpp

References SUCCESS.

ActsExamples::ProcessCode ActsExamples::CsvSpacepointWriter::writeT ( const AlgorithmContext ctx,
const SimSpacePointContainer spacepoints 
)
overrideprotectedvirtual

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

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

Implements ActsExamples::WriterT< SimSpacePointContainer >.

Definition at line 41 of file CsvSpacePointWriter.cpp.

View newest version in sPHENIX GitHub at line 41 of file CsvSpacePointWriter.cpp

References ActsExamples::AlgorithmContext::eventNumber, ActsExamples::IndexSourceLink::index(), m_cfg(), ActsExamples::perEventFilepath(), and SUCCESS.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::CsvSpacepointWriter::m_cfg
private

Definition at line 73 of file CsvSpacepointWriter.hpp.

View newest version in sPHENIX GitHub at line 73 of file CsvSpacepointWriter.hpp

Referenced by config().


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