HepMC3 event record library
|
Base class for all I/O writers. More...
#include <Writer.h>
Public Member Functions | |
Writer () | |
Constructor. More... | |
virtual | ~Writer () |
Virtual destructor. More... | |
virtual void | write_event (const GenEvent &evt)=0 |
Write event evt to output target. More... | |
virtual bool | failed ()=0 |
Get file and/or stream error state. More... | |
virtual void | close ()=0 |
Close file and/or stream. More... | |
void | set_run_info (std::shared_ptr< GenRunInfo > run) |
Set the global GenRunInfo object. More... | |
std::shared_ptr< GenRunInfo > | run_info () const |
Get the global GenRunInfo object. More... | |
Writer (const Writer &)=delete | |
deleted copy constructor More... | |
Writer & | operator= (const Writer &)=delete |
deleted copy assignment operator More... | |
void | set_options (const std::map< std::string, std::string > &options) |
Set options. More... | |
std::map< std::string, std::string > | get_options () const |
Set options. More... | |
Protected Attributes | |
std::map< std::string, std::string > | m_options |
options More... | |
Private Attributes | |
std::shared_ptr< GenRunInfo > | m_run_info |
The global GenRunInfo object. More... | |
|
pure virtual |
Close file and/or stream.
Implemented in WriterRootTree, WriterHEPEVT, WriterRoot, WriterAsciiHepMC2, WriterAscii, WriterDOT, AnalysisExample, and WriterPlugin.
|
pure virtual |
Get file and/or stream error state.
Implemented in WriterRootTree, WriterHEPEVT, WriterRoot, WriterAsciiHepMC2, WriterAscii, WriterPlugin, WriterDOT, and AnalysisExample.
|
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 WriterHEPEVT, WriterRootTree, WriterRoot, WriterAsciiHepMC2, WriterAscii, WriterPlugin, WriterDOT, AnalysisExample, and WriterRootTreeOPAL.
|
protected |
|
private |
The global GenRunInfo object.