Analysis Software
Documentation for sPHENIX simulation software
|
HepMC3 event writer. More...
#include <acts/blob/sPHENIX/Examples/Io/HepMC3/include/ActsExamples/Io/HepMC3/HepMC3Writer.hpp>
Classes | |
struct | Config |
Public Member Functions | |
HepMC3AsciiWriter (const Config &config, Acts::Logging::Level level) | |
ProcessCode | writeT (const ActsExamples::AlgorithmContext &ctx, const std::vector< HepMC3::GenEvent > &events) override |
const Config & | config () const |
Get readonly access to the config parameters. | |
Public Member Functions inherited from ActsExamples::WriterT< std::vector< HepMC3::GenEvent > > | |
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 |
Private Attributes | |
Config | m_cfg |
The configuration of this writer. | |
Additional Inherited Members | |
Protected Member Functions inherited from ActsExamples::WriterT< std::vector< HepMC3::GenEvent > > | |
const Acts::Logger & | logger () const |
HepMC3 event writer.
Definition at line 22 of file HepMC3Writer.hpp.
View newest version in sPHENIX GitHub at line 22 of file HepMC3Writer.hpp
ActsExamples::HepMC3AsciiWriter::HepMC3AsciiWriter | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Construct the writer.
[in] | config | Config of the writer |
[in] | level | The level of the logger |
Definition at line 13 of file HepMC3Writer.cpp.
View newest version in sPHENIX GitHub at line 13 of file HepMC3Writer.cpp
References m_cfg, and ActsExamples::HepMC3AsciiWriter::Config::outputStem.
|
inline |
Get readonly access to the config parameters.
Definition at line 49 of file HepMC3Writer.hpp.
View newest version in sPHENIX GitHub at line 49 of file HepMC3Writer.hpp
References m_cfg.
|
overridevirtual |
Writing events to file.
[in] | ctx | The context of this algorithm |
[in] | events | The recorded HepMC3 events |
Implements ActsExamples::WriterT< std::vector< HepMC3::GenEvent > >.
Definition at line 21 of file HepMC3Writer.cpp.
View newest version in sPHENIX GitHub at line 21 of file HepMC3Writer.cpp
References ACTS_DEBUG, event, ActsExamples::AlgorithmContext::eventNumber, m_cfg(), path, ActsExamples::perEventFilepath(), SUCCESS, and writer.
|
private |
The configuration of this writer.
Definition at line 53 of file HepMC3Writer.hpp.
View newest version in sPHENIX GitHub at line 53 of file HepMC3Writer.hpp
Referenced by config(), and HepMC3AsciiWriter().