HEJ 2.2.2
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 | set_xs_scale (double scale)=0 |
Set the ratio (cross section) / (sum of event weights) 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 |
Set the ratio (cross section) / (sum of event weights)
Implemented in HEJ::CombinedEventWriter, HEJ::HDF5Writer, HEJ::HepMC2Writer, HEJ::HepMC3Writer, and HEJ::LesHouchesWriter.
|
pure virtual |
Write an event.
Implemented in HEJ::CombinedEventWriter, HEJ::HDF5Writer, HEJ::HepMC2Writer, HEJ::HepMC3Writer, and HEJ::LesHouchesWriter.