herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.2.1
MatrixElement
Matchbox
Tests
WeightAnalyzer.h
1
// -*- C++ -*-
2
#ifndef Herwig_WeightAnalyzer_H
3
#define Herwig_WeightAnalyzer_H
4
//
5
// This is the declaration of the WeightAnalyzer class.
6
//
7
8
#include "ThePEG/Handlers/AnalysisHandler.h"
9
10
namespace
Herwig
{
11
12
using namespace
ThePEG
;
13
20
class
WeightAnalyzer
:
public
AnalysisHandler
{
21
22
public
:
23
29
WeightAnalyzer
();
30
34
virtual
~
WeightAnalyzer
();
36
37
public
:
38
58
virtual
void
analyze(
tEventPtr
event,
long
ieve,
int
loop,
int
state);
60
61
protected
:
62
67
virtual
void
doinitrun();
68
73
virtual
void
dofinish();
74
75
76
public
:
77
84
void
persistentOutput(
PersistentOStream
& os)
const
;
85
91
void
persistentInput(
PersistentIStream
& is,
int
version);
93
100
static
void
Init();
101
102
protected
:
103
110
virtual
IBPtr
clone()
const
;
111
116
virtual
IBPtr
fullclone()
const
;
118
119
120
// If needed, insert declarations of virtual function defined in the
121
// InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
122
123
private
:
124
128
double
sumWeights
;
129
133
double
sumPositiveWeights
;
134
138
double
sumNegativeWeights
;
139
143
double
sumGroupWeights
;
144
148
double
sumPositiveGroupWeights
;
149
153
double
sumNegativeGroupWeights
;
154
158
double
maxDeviationGroupWeight
;
159
164
double
maxDeviationEventWeight
;
165
169
double
nPositiveWeights
;
170
174
double
nNegativeWeights
;
175
179
double
maxPositiveWeight
;
180
184
double
maxNegativeWeight
;
185
189
map<double,double>
positiveWeightDistribution
;
190
194
map<double,double>
negativeWeightDistribution
;
195
196
200
bool
gnuplot
;
201
202
203
204
private
:
205
210
WeightAnalyzer
& operator=(
const
WeightAnalyzer
&) =
delete
;
211
212
};
213
214
}
215
216
#endif
/* Herwig_WeightAnalyzer_H */
Herwig::WeightAnalyzer::nNegativeWeights
double nNegativeWeights
Total number of negative weights.
Definition:
WeightAnalyzer.h:174
ThePEG::PersistentIStream
Herwig::WeightAnalyzer::nPositiveWeights
double nPositiveWeights
Total number of positive weights.
Definition:
WeightAnalyzer.h:169
Herwig::WeightAnalyzer::maxDeviationGroupWeight
double maxDeviationGroupWeight
The maximum deviation of the group weight sum from one.
Definition:
WeightAnalyzer.h:158
Herwig::WeightAnalyzer::sumPositiveGroupWeights
double sumPositiveGroupWeights
The sum of positive weights calculated by subprocess group weights.
Definition:
WeightAnalyzer.h:148
Herwig::WeightAnalyzer::gnuplot
bool gnuplot
Gnuplot output.
Definition:
WeightAnalyzer.h:200
ThePEG::PersistentOStream
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
Herwig::WeightAnalyzer::sumPositiveWeights
double sumPositiveWeights
The sum of positive weights.
Definition:
WeightAnalyzer.h:133
ThePEG
ThePEG::AnalysisHandler
Herwig::WeightAnalyzer::positiveWeightDistribution
map< double, double > positiveWeightDistribution
Histogram of positive weight occurences.
Definition:
WeightAnalyzer.h:189
Herwig::WeightAnalyzer::negativeWeightDistribution
map< double, double > negativeWeightDistribution
Histogram of negative weight occurences.
Definition:
WeightAnalyzer.h:194
Herwig::WeightAnalyzer
Here is the documentation of the WeightAnalyzer class.
Definition:
WeightAnalyzer.h:20
Herwig::WeightAnalyzer::sumWeights
double sumWeights
The sum of weights.
Definition:
WeightAnalyzer.h:128
Herwig::WeightAnalyzer::sumGroupWeights
double sumGroupWeights
The sum of weights calculated by subprocess group weights.
Definition:
WeightAnalyzer.h:143
ThePEG::tEventPtr
ThePEG::Ptr< Event >::transient_pointer tEventPtr
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
Herwig::WeightAnalyzer::maxDeviationEventWeight
double maxDeviationEventWeight
The maximum deviation of the event weight sum from the overall event weight.
Definition:
WeightAnalyzer.h:164
Herwig::WeightAnalyzer::maxNegativeWeight
double maxNegativeWeight
The maximum absolute negative weight.
Definition:
WeightAnalyzer.h:184
Herwig::WeightAnalyzer::maxPositiveWeight
double maxPositiveWeight
The maximum postive weight.
Definition:
WeightAnalyzer.h:179
Herwig::WeightAnalyzer::sumNegativeGroupWeights
double sumNegativeGroupWeights
The sum of negative weights calculated by subprocess group weights.
Definition:
WeightAnalyzer.h:153
Herwig::WeightAnalyzer::sumNegativeWeights
double sumNegativeWeights
The sum of negative weights.
Definition:
WeightAnalyzer.h:138
Generated on Sat Apr 11 2020 14:50:32 for Herwig by
1.8.13