ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FW::Json::JsonSpacePointWriter< T > Class Template Reference

#include <acts/blob/master/Examples/Io/Json/include/ACTFW/Plugins/Json/JsonSpacePointWriter.hpp>

+ Inheritance diagram for FW::Json::JsonSpacePointWriter< T >:
+ Collaboration diagram for FW::Json::JsonSpacePointWriter< T >:

Classes

struct  Config
 

Public Member Functions

 JsonSpacePointWriter (const Config &cfg, Acts::Logging::Level level=Acts::Logging::INFO)
 
- Public Member Functions inherited from FW::WriterT< GeometryIdMultimap< T > >
 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

FW::ProcessCode writeT (const FW::AlgorithmContext &context, const GeometryIdMultimap< T > &spacePoints) finaloverride
 
- Protected Member Functions inherited from FW::WriterT< GeometryIdMultimap< T > >
const Acts::Loggerlogger () const
 

Private Types

using Base = WriterT< GeometryIdMultimap< T >>
 

Private Attributes

Config m_cfg
 

Detailed Description

template<class T>
class FW::Json::JsonSpacePointWriter< T >

Write out a space point collection in JSON format.

This writes one file per event into the configured output directory. By default it writes to the current working directory. Files are named using the following schema

event000000001-spacepoints.json
event000000002-spacepoints.json

Definition at line 34 of file JsonSpacePointWriter.hpp.

View newest version in sPHENIX GitHub at line 34 of file JsonSpacePointWriter.hpp

Member Typedef Documentation

template<class T >
using FW::Json::JsonSpacePointWriter< T >::Base = WriterT<GeometryIdMultimap<T>>
private

Definition at line 52 of file JsonSpacePointWriter.hpp.

View newest version in sPHENIX GitHub at line 52 of file JsonSpacePointWriter.hpp

Constructor & Destructor Documentation

Definition at line 61 of file JsonSpacePointWriter.hpp.

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

References FW::Json::JsonSpacePointWriter< T >::Config::collection, and FW::Json::JsonSpacePointWriter< T >::m_cfg.

Member Function Documentation

template<class T >
FW::ProcessCode FW::Json::JsonSpacePointWriter< T >::writeT ( const FW::AlgorithmContext context,
const GeometryIdMultimap< T > &  t 
)
finaloverrideprotectedvirtual

Type-specific write function implementation this method is implemented in the user implementation

Parameters
[in]contextis the algorithm context that guarantees event consistency
Template Parameters
[in]is the templeted collection to be written

Implements FW::WriterT< GeometryIdMultimap< T > >.

Definition at line 71 of file JsonSpacePointWriter.hpp.

View newest version in sPHENIX GitHub at line 71 of file JsonSpacePointWriter.hpp

References FW::AlgorithmContext::eventNumber, FW::perEventFilepath(), and SUCCESS.

+ Here is the call graph for this function:

Member Data Documentation

template<class T >
Config FW::Json::JsonSpacePointWriter< T >::m_cfg
private

Definition at line 54 of file JsonSpacePointWriter.hpp.

View newest version in sPHENIX GitHub at line 54 of file JsonSpacePointWriter.hpp

Referenced by FW::Json::JsonSpacePointWriter< T >::JsonSpacePointWriter().


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