hej
is hosted by
Hepforge
,
IPPP Durham
HEJ 2
2.0
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
include
HEJ
EventReweighter.hh
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <array>
14
#include <functional>
15
#include <utility>
16
#include <vector>
17
18
#include "
HEJ/config.hh
"
19
#include "
HEJ/event_types.hh
"
20
#include "
HEJ/MatrixElement.hh
"
21
#include "
HEJ/PDF.hh
"
22
#include "
HEJ/PDG_codes.hh
"
23
#include "
HEJ/RNG.hh
"
24
#include "
HEJ/ScaleFunction.hh
"
25
26
namespace
LHEF
{
27
class
HEPRUP;
28
}
29
30
namespace
HEJ
{
31
class
Event;
32
class
Weights;
33
35
39
struct
Beam
{
40
double
E
;
41
std::array<ParticleID, 2>
type
;
42
};
43
45
class
EventReweighter
{
46
using
EventType
=
event_type::EventType
;
47
public
:
48
49
EventReweighter
(
50
Beam
beam,
51
int
pdf_id,
52
ScaleGenerator
scale_gen,
53
EventReweighterConfig
conf,
54
HEJ::RNG
& ran
55
);
56
57
EventReweighter
(
58
LHEF::HEPRUP
const
& heprup,
59
ScaleGenerator
scale_gen,
60
EventReweighterConfig
conf,
61
HEJ::RNG
& ran
62
);
63
65
PDF
const
&
pdf
()
const
;
66
67
69
86
std::vector<Event>
reweight
(
87
Event
const
& ev,
88
int
num_events
89
);
90
91
private
:
92
93
template
<
typename
... T>
94
PDF
const
&
pdf
(T&& ...);
95
100
std::vector<Event> gen_res_events(
101
Event
const
& ev,
int
num_events
102
);
103
std::vector<Event> rescale(
104
Event
const
& Born_ev, std::vector<Event> events
105
)
const
;
106
113
bool
jets_pass_resummation_cuts(
Event
const
& ev)
const
;
114
124
Weights
pdf_factors(
Event
const
& ev)
const
;
125
135
Weights
matrix_elements(
Event
const
& ev)
const
;
136
150
Weights
fixed_order_scale_ME(
Event
const
& ev)
const
;
151
161
double
tree_matrix_element(
Event
const
& ev)
const
;
162
163
165
EventReweighterConfig
param_;
166
168
double
E_beam_;
169
171
PDF
pdf_;
172
174
MatrixElement
MEt2_;
176
ScaleGenerator
scale_gen_;
182
std::reference_wrapper<HEJ::RNG> ran_;
183
};
184
185
template
<
typename
... T>
186
PDF
const
&
EventReweighter::pdf
(T&&... t){
187
return
pdf_ =
PDF
{std::forward<T>(t)...};
188
}
189
190
}
MatrixElement.hh
Contains the MatrixElement Class.
PDF.hh
Contains all the necessary classes and functions for interaction with PDFs.
PDG_codes.hh
Contains the Particle IDs of all relevant SM particles.
RNG.hh
Interface for pseudorandom number generators.
ScaleFunction.hh
Functions to calculate the (renormalisation and factorisation) scales for an event.
HEJ::EventReweighter
Main class for reweighting events in HEJ.
Definition:
EventReweighter.hh:45
HEJ::EventReweighter::reweight
std::vector< Event > reweight(Event const &ev, int num_events)
Generate resummation events for a given fixed-order event.
HEJ::EventReweighter::EventReweighter
EventReweighter(LHEF::HEPRUP const &heprup, ScaleGenerator scale_gen, EventReweighterConfig conf, HEJ::RNG &ran)
HEJ::EventReweighter::EventReweighter
EventReweighter(Beam beam, int pdf_id, ScaleGenerator scale_gen, EventReweighterConfig conf, HEJ::RNG &ran)
HEJ::EventReweighter::pdf
PDF const & pdf() const
Get the used pdf.
HEJ::Event
Definition:
Event.hh:84
HEJ::MatrixElement
Class to calculate the squares of matrix elements.
Definition:
MatrixElement.hh:28
HEJ::PDF
Class for interaction with a PDF set.
Definition:
PDF.hh:21
HEJ::ScaleGenerator
Generate combinations of renormalisation and factorisation scales.
Definition:
ScaleFunction.hh:90
config.hh
HEJ 2 configuration parameters.
event_types.hh
Define different types of events.
HEJ::event_type::EventType
EventType
Possible event types.
Definition:
event_types.hh:18
HEJ
Main HEJ 2 Namespace.
Definition:
mainpage.dox:1
LHEF
Definition:
CombinedEventWriter.hh:17
HEJ::Beam
Beam parameters.
Definition:
EventReweighter.hh:39
HEJ::Beam::E
double E
Definition:
EventReweighter.hh:40
HEJ::Beam::type
std::array< ParticleID, 2 > type
Definition:
EventReweighter.hh:41
HEJ::EventReweighterConfig
Configuration options for the EventReweighter class.
Definition:
config.hh:124
HEJ::RNG
Interface for random number generator.
Definition:
RNG.hh:19
HEJ::Weights
Collection of weights assigned to a single event.
Definition:
Weights.hh:19
Generated by
1.9.5