hej is hosted by Hepforge, IPPP Durham
HEJ 2 2.0
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
Weights.hh
Go to the documentation of this file.
1
8#pragma once
9
10#include <vector>
11
12namespace 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
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
43 return a/=b;
44 }
45 inline
46 Weights operator/(Weights a, double b) {
47 return a/=b;
48 }
49}
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
ScaleFunction operator*(double factor, ScaleFunction base_scale)
Multiply a scale choice by a constant factor.
ScaleFunction operator/(ScaleFunction base_scale, double denom)
Divide a scale choice by a constant factor.
Collection of weights assigned to a single event.
Definition: Weights.hh:19
std::vector< double > variations
Definition: Weights.hh:21
Weights & operator*=(double factor)
Weights & operator/=(double factor)
double central
Definition: Weights.hh:20
Weights & operator/=(Weights const &other)
Weights & operator*=(Weights const &other)