HEJ 2.1.4
High energy resummation for hadron colliders
|
Pure abstract base class for event writers. More...
#include <EventWriter.hh>
Public Member Functions | |
virtual void | write (Event const &)=0 |
Write an event. More... | |
virtual void | finish () |
virtual | ~EventWriter ()=default |
Protected Member Functions | |
void | finish_or_abort (EventWriter *writer, std::string const &name) const noexcept |
If writer is not finished run finish() and abort on error. More... | |
bool | finished () const |
Pure abstract base class for event writers.
|
virtualdefault |
|
inlinevirtual |
Finish writing, e.g. write out general informations at end of run
Reimplemented in HEJ::CombinedEventWriter, HEJ::HDF5Writer, HEJ::HepMC3Writer, and HEJ::LesHouchesWriter.
|
protectednoexcept |
If writer is not finished run finish() and abort on error.
writer | writer that is expected to finish, i.e. this |
name | name for error message |
Used in the destructor of inherited EventWriter to force finish()
|
inlineprotected |
|
pure virtual |
Write an event.
Implemented in HEJ::CombinedEventWriter, HEJ::HDF5Writer, HEJ::HepMC2Writer, HEJ::HepMC3Writer, and HEJ::LesHouchesWriter.