hej
is hosted by
Hepforge
,
IPPP Durham
HEJ
2.2.2
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
include
HEJ
EventWriter.hh
Go to the documentation of this file.
1
8
#pragma once
9
10
#include <string>
11
12
namespace
HEJ
{
13
class
Event;
14
16
class
EventWriter
{
17
public
:
19
virtual
void
write
(
Event
const
&) = 0;
20
22
virtual
void
set_xs_scale
(
double
scale) = 0;
23
26
virtual
void
finish
(){finished_=
true
;};
27
28
virtual
~EventWriter
() =
default
;
29
protected
:
37
void
finish_or_abort
(
38
EventWriter
* writer, std::string
const
& name
39
)
const
noexcept
;
40
bool
finished
()
const
{
return
finished_;};
41
private
:
42
bool
finished_ =
false
;
43
};
44
45
}
// namespace HEJ
HEJ::EventWriter
Pure abstract base class for event writers.
Definition:
EventWriter.hh:16
HEJ::EventWriter::set_xs_scale
virtual void set_xs_scale(double scale)=0
Set the ratio (cross section) / (sum of event weights)
HEJ::EventWriter::finished
bool finished() const
Definition:
EventWriter.hh:40
HEJ::EventWriter::finish_or_abort
void finish_or_abort(EventWriter *writer, std::string const &name) const noexcept
If writer is not finished run finish() and abort on error.
HEJ::EventWriter::write
virtual void write(Event const &)=0
Write an event.
HEJ::EventWriter::finish
virtual void finish()
Definition:
EventWriter.hh:26
HEJ::EventWriter::~EventWriter
virtual ~EventWriter()=default
HEJ::Event
An event with clustered jets.
Definition:
Event.hh:51
HEJ
Main HEJ 2 Namespace.
Definition:
mainpage.dox:1
Generated by
1.9.5