HepMC3 event record library
|
#include <Writer.h>
Public Member Functions | |
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 (shared_ptr< GenRunInfo > run) |
Set the global GenRunInfo object. More... | |
shared_ptr< GenRunInfo > | run_info () const |
Get the global GenRunInfo object. More... | |
Private Attributes | |
shared_ptr< GenRunInfo > | m_run_info |
The global GenRunInfo object. More... | |
|
pure virtual |
Close file and/or stream.
Implemented in WriterDOT, WriterAscii, WriterAsciiHepMC2, WriterHEPEVT, WriterRoot, and WriterRootTree.
|
pure virtual |
Get file and/or stream error state.
Implemented in WriterDOT, WriterAscii, WriterAsciiHepMC2, WriterHEPEVT, WriterRoot, and WriterRootTree.
|
inline |
Get the global GenRunInfo object.
Definition at line 44 of file Writer.h.
References Writer::m_run_info.
|
inline |
Set the global GenRunInfo object.
Definition at line 39 of file Writer.h.
References Writer::m_run_info.
|
pure virtual |
Write event evt to output target.
Implemented in WriterDOT, WriterRootTreeOPAL, WriterAscii, WriterAsciiHepMC2, WriterHEPEVT, WriterRoot, and WriterRootTree.
|
private |
The global GenRunInfo object.