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

#include <acts/blob/master/Examples/Io/Obj/include/ACTFW/Plugins/Obj/ObjSpacePointWriter.hpp>

+ Inheritance diagram for FW::Obj::ObjSpacePointWriter< T >:
+ Collaboration diagram for FW::Obj::ObjSpacePointWriter< T >:

Classes

struct  Config
 

Public Member Functions

 ObjSpacePointWriter (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

ProcessCode writeT (const AlgorithmContext &context, const GeometryIdMultimap< T > &spacePoints)
 
- 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<typename T>
class FW::Obj::ObjSpacePointWriter< T >

Write out a space point collection in OBJ 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.obj
event000000002-spacepoints.obj

One write call per thread and hence thread safe.

Definition at line 31 of file ObjSpacePointWriter.hpp.

View newest version in sPHENIX GitHub at line 31 of file ObjSpacePointWriter.hpp

Member Typedef Documentation

template<typename T >
using FW::Obj::ObjSpacePointWriter< T >::Base = WriterT<GeometryIdMultimap<T>>
private

Definition at line 49 of file ObjSpacePointWriter.hpp.

View newest version in sPHENIX GitHub at line 49 of file ObjSpacePointWriter.hpp

Constructor & Destructor Documentation

template<typename T >
FW::Obj::ObjSpacePointWriter< T >::ObjSpacePointWriter ( const Config cfg,
Acts::Logging::Level  level = Acts::Logging::INFO 
)
inline

Definition at line 58 of file ObjSpacePointWriter.hpp.

View newest version in sPHENIX GitHub at line 58 of file ObjSpacePointWriter.hpp

References FW::Obj::ObjSpacePointWriter< T >::Config::collection, and FW::Obj::ObjSpacePointWriter< T >::m_cfg.

Member Function Documentation

template<typename T >
FW::ProcessCode FW::Obj::ObjSpacePointWriter< T >::writeT ( const AlgorithmContext context,
const GeometryIdMultimap< T > &  t 
)
inlineprotectedvirtual

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 67 of file ObjSpacePointWriter.hpp.

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

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

+ Here is the call graph for this function:

Member Data Documentation

template<typename T >
Config FW::Obj::ObjSpacePointWriter< T >::m_cfg
private

Definition at line 51 of file ObjSpacePointWriter.hpp.

View newest version in sPHENIX GitHub at line 51 of file ObjSpacePointWriter.hpp

Referenced by FW::Obj::ObjSpacePointWriter< T >::ObjSpacePointWriter().


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