Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/Json/include/ActsExamples/Io/Json/JsonSpacePointWriter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
JsonSpacePointWriter (const Config &cfg, Acts::Logging::Level level=Acts::Logging::INFO) | |
Public Member Functions inherited from ActsExamples::WriterT< GeometryIdMultimap< T > > | |
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 | |
ActsExamples::ProcessCode | writeT (const ActsExamples::AlgorithmContext &context, const GeometryIdMultimap< T > &spacePoints) override |
Protected Member Functions inherited from ActsExamples::WriterT< GeometryIdMultimap< T > > | |
const Acts::Logger & | logger () const |
Private Types | |
using | Base = WriterT< GeometryIdMultimap< T >> |
Private Attributes | |
Config | m_cfg |
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 33 of file JsonSpacePointWriter.hpp.
View newest version in sPHENIX GitHub at line 33 of file JsonSpacePointWriter.hpp
|
private |
Definition at line 51 of file JsonSpacePointWriter.hpp.
View newest version in sPHENIX GitHub at line 51 of file JsonSpacePointWriter.hpp
ActsExamples::JsonSpacePointWriter< T >::JsonSpacePointWriter | ( | const Config & | cfg, |
Acts::Logging::Level | level = Acts::Logging::INFO |
||
) |
Definition at line 59 of file JsonSpacePointWriter.hpp.
View newest version in sPHENIX GitHub at line 59 of file JsonSpacePointWriter.hpp
References ActsExamples::JsonSpacePointWriter< T >::Config::collection, and ActsExamples::JsonSpacePointWriter< T >::m_cfg.
|
overrideprotectedvirtual |
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 templated collection to be written |
Implements ActsExamples::WriterT< GeometryIdMultimap< T > >.
Definition at line 69 of file JsonSpacePointWriter.hpp.
View newest version in sPHENIX GitHub at line 69 of file JsonSpacePointWriter.hpp
References configureMap::data, ActsExamples::AlgorithmContext::eventNumber, m_cfg(), os, out, path, ActsExamples::perEventFilepath(), and SUCCESS.
|
private |
Definition at line 53 of file JsonSpacePointWriter.hpp.
View newest version in sPHENIX GitHub at line 53 of file JsonSpacePointWriter.hpp
Referenced by ActsExamples::JsonSpacePointWriter< T >::JsonSpacePointWriter().