herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
MatrixElement
Reweighters
ReweightEW.h
1
// -*- C++ -*-
2
#ifndef Herwig_ReweightEW_H
3
#define Herwig_ReweightEW_H
4
//
5
// This is the declaration of the ReweightEW class.
6
//
7
8
#include "ThePEG/MatrixElement/ReweightBase.h"
9
#include <array>
10
11
namespace
Herwig
{
12
13
using namespace
ThePEG
;
14
21
class
ReweightEW
:
public
ReweightBase
{
22
23
public
:
24
30
ReweightEW
();
31
35
virtual
~ReweightEW
();
37
38
public
:
39
44
virtual
double
weight
()
const
;
45
49
double
lastS
()
const
{
return
thelasts
;}
50
double
lastT()
const
{
return
thelastt
;}
51
double
lastK()
const
{
return
thelastk
;}
52
53
void
setSTK(
double
s,
double
t,
double
K);
54
55
62
void
persistentOutput
(
PersistentOStream
& os)
const
;
63
69
void
persistentInput
(
PersistentIStream
& is,
int
version);
71
78
static
void
Init
();
79
80
protected
:
81
88
virtual
IBPtr
clone
()
const
;
89
94
virtual
IBPtr
fullclone
()
const
;
96
97
98
private
:
99
103
mutable
double
thelasts
;
104
108
mutable
double
thelastt
;
109
113
mutable
double
thelastk
;
114
118
std::array<std::array<double,6>,40001>
tab
;
119
123
string
filename
;
124
125
public
:
129
double
EWKFac
(
unsigned
int
f,
double
s,
double
t)
const
;
130
131
private
:
135
void
inittable
();
136
137
private
:
138
144
virtual
void
doinit
();
145
150
virtual
void
doinitrun
();
151
152
private
:
153
158
ReweightEW
&
operator=
(
const
ReweightEW
&) =
delete
;
159
160
};
161
162
}
163
164
#endif
/* Herwig_ReweightEW_H */
Herwig::ReweightEW
Here is the documentation of the ReweightEW class.
Definition:
ReweightEW.h:21
Herwig::ReweightEW::filename
string filename
EW K factor filename.
Definition:
ReweightEW.h:123
Herwig::ReweightEW::weight
virtual double weight() const
Return the weight for the kinematical configuation provided by the assigned XComb object (in the Last...
Herwig::ReweightEW::Init
static void Init()
The standard Init function used to initialize the interfaces.
Herwig::ReweightEW::ReweightEW
ReweightEW()
The default constructor.
Herwig::ReweightEW::lastS
double lastS() const
Return values of the last evaluation (double/doubles in GeV2)
Definition:
ReweightEW.h:49
Herwig::ReweightEW::EWKFac
double EWKFac(unsigned int f, double s, double t) const
Computation of K factors from table (s and t in GeV)
Herwig::ReweightEW::doinit
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
Herwig::ReweightEW::clone
virtual IBPtr clone() const
Make a simple clone of this object.
Herwig::ReweightEW::doinitrun
virtual void doinitrun()
Initialize this object.
Herwig::ReweightEW::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
Herwig::ReweightEW::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
Herwig::ReweightEW::inittable
void inittable()
initialize tables
Herwig::ReweightEW::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Herwig::ReweightEW::thelasts
double thelasts
The last s.
Definition:
ReweightEW.h:103
Herwig::ReweightEW::~ReweightEW
virtual ~ReweightEW()
The destructor.
Herwig::ReweightEW::tab
std::array< std::array< double, 6 >, 40001 > tab
The table of K factors to be read from file.
Definition:
ReweightEW.h:118
Herwig::ReweightEW::operator=
ReweightEW & operator=(const ReweightEW &)=delete
The assignment operator is private and must never be called.
Herwig::ReweightEW::thelastt
double thelastt
The last t.
Definition:
ReweightEW.h:108
Herwig::ReweightEW::thelastk
double thelastk
The last K-factor.
Definition:
ReweightEW.h:113
ThePEG::PersistentIStream
ThePEG::PersistentOStream
ThePEG::ReweightBase
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6