HepMC3 event record library
|
#include <Writer.h>
Public Member Functions | |
Writer () | |
Constructor. | |
virtual | ~Writer () |
Virtual destructor. | |
virtual void | write_event (const GenEvent &evt)=0 |
Write event evt to output target. | |
virtual bool | failed ()=0 |
Get file and/or stream error state. | |
virtual void | close ()=0 |
Close file and/or stream. | |
void | set_run_info (std::shared_ptr< GenRunInfo > run) |
Set the global GenRunInfo object. | |
std::shared_ptr< GenRunInfo > | run_info () const |
Get the global GenRunInfo object. | |
Writer (const Writer &)=delete | |
deleted copy constructor | |
Writer & | operator= (const Writer &)=delete |
deleted copy assignment operator | |
void | set_options (const std::map< std::string, std::string > &options) |
Set options. | |
std::map< std::string, std::string > | get_options () const |
Set options. | |
Protected Attributes | |
std::map< std::string, std::string > | m_options |
options | |
Private Attributes | |
std::shared_ptr< GenRunInfo > | m_run_info |
The global GenRunInfo object. | |
|
pure virtual |
Close file and/or stream.
Implemented in WriterDOT, AnalysisExample, WriterAscii, WriterAsciiHepMC2, WriterGZ< T, C >, WriterHEPEVT, WriterPlugin, WriterRoot, and WriterRootTree.
|
pure virtual |
Get file and/or stream error state.
Implemented in WriterDOT, AnalysisExample, WriterAscii, WriterAsciiHepMC2, WriterGZ< T, C >, WriterHEPEVT, WriterPlugin, WriterRoot, and WriterRootTree.
|
inline |
|
inline |
Get the global GenRunInfo object.
Definition at line 47 of file Writer.h.
References Writer::m_run_info.
|
inline |
|
inline |
Set the global GenRunInfo object.
Definition at line 42 of file Writer.h.
References Writer::m_run_info.
|
pure virtual |
Write event evt to output target.
Implemented in WriterPlugin, WriterDOT, WriterRootTreeOPAL, AnalysisExample, WriterAscii, WriterAsciiHepMC2, WriterGZ< T, C >, WriterHEPEVT, WriterRoot, and WriterRootTree.
|
protected |
|
private |
The global GenRunInfo object.