hej
is hosted by
Hepforge
,
IPPP Durham
HEJ 2
2.0
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
include
HEJ
Weights.hh
Go to the documentation of this file.
1
8
#pragma once
9
10
#include <vector>
11
12
namespace
HEJ
{
14
19
struct
Weights
{
20
double
central
;
21
std::vector<double>
variations
;
22
23
Weights
&
operator*=
(
Weights
const
& other);
24
Weights
&
operator*=
(
double
factor);
25
Weights
&
operator/=
(
Weights
const
& other);
26
Weights
&
operator/=
(
double
factor);
27
};
28
29
inline
30
Weights
operator*
(
Weights
a,
Weights
const
& b) {
31
return
a*=b;
32
}
33
inline
34
Weights
operator*
(
Weights
a,
double
b) {
35
return
a*=b;
36
}
37
inline
38
Weights
operator*
(
double
b,
Weights
a) {
39
return
a*=b;
40
}
41
inline
42
Weights
operator/
(
Weights
a,
Weights
const
& b) {
43
return
a/=b;
44
}
45
inline
46
Weights
operator/
(
Weights
a,
double
b) {
47
return
a/=b;
48
}
49
}
HEJ
Main HEJ 2 Namespace.
Definition:
mainpage.dox:1
HEJ::operator*
ScaleFunction operator*(double factor, ScaleFunction base_scale)
Multiply a scale choice by a constant factor.
HEJ::operator/
ScaleFunction operator/(ScaleFunction base_scale, double denom)
Divide a scale choice by a constant factor.
HEJ::Weights
Collection of weights assigned to a single event.
Definition:
Weights.hh:19
HEJ::Weights::variations
std::vector< double > variations
Definition:
Weights.hh:21
HEJ::Weights::operator*=
Weights & operator*=(double factor)
HEJ::Weights::operator/=
Weights & operator/=(double factor)
HEJ::Weights::central
double central
Definition:
Weights.hh:20
HEJ::Weights::operator/=
Weights & operator/=(Weights const &other)
HEJ::Weights::operator*=
Weights & operator*=(Weights const &other)
Generated by
1.9.5