herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
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
27
WeightAnalyzer
();
28
29
public
:
30
50
virtual
void
analyze
(
tEventPtr
event,
long
ieve,
int
loop,
int
state
);
52
53
protected
:
54
59
virtual
void
doinitrun
();
60
65
virtual
void
dofinish
();
66
67
68
public
:
69
76
void
persistentOutput
(
PersistentOStream
& os)
const
;
77
83
void
persistentInput
(
PersistentIStream
& is,
int
version);
85
92
static
void
Init
();
93
94
protected
:
95
102
virtual
IBPtr
clone
()
const
;
103
108
virtual
IBPtr
fullclone
()
const
;
110
111
112
// If needed, insert declarations of virtual function defined in the
113
// InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
114
115
private
:
116
120
double
sumWeights
;
121
125
double
sumPositiveWeights
;
126
130
double
sumNegativeWeights
;
131
135
double
sumGroupWeights
;
136
140
double
sumPositiveGroupWeights
;
141
145
double
sumNegativeGroupWeights
;
146
150
double
maxDeviationGroupWeight
;
151
156
double
maxDeviationEventWeight
;
157
161
double
nPositiveWeights
;
162
166
double
nNegativeWeights
;
167
171
double
maxPositiveWeight
;
172
176
double
maxNegativeWeight
;
177
181
map<double,double>
positiveWeightDistribution
;
182
186
map<double,double>
negativeWeightDistribution
;
187
188
192
bool
gnuplot
;
193
194
195
196
private
:
197
202
WeightAnalyzer
&
operator=
(
const
WeightAnalyzer
&) =
delete
;
203
204
};
205
206
}
207
208
#endif
/* Herwig_WeightAnalyzer_H */
Herwig::WeightAnalyzer
Here is the documentation of the WeightAnalyzer class.
Definition:
WeightAnalyzer.h:20
Herwig::WeightAnalyzer::analyze
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
Herwig::WeightAnalyzer::gnuplot
bool gnuplot
Gnuplot output.
Definition:
WeightAnalyzer.h:192
Herwig::WeightAnalyzer::Init
static void Init()
The standard Init function used to initialize the interfaces.
Herwig::WeightAnalyzer::maxNegativeWeight
double maxNegativeWeight
The maximum absolute negative weight.
Definition:
WeightAnalyzer.h:176
Herwig::WeightAnalyzer::maxPositiveWeight
double maxPositiveWeight
The maximum postive weight.
Definition:
WeightAnalyzer.h:171
Herwig::WeightAnalyzer::sumWeights
double sumWeights
The sum of weights.
Definition:
WeightAnalyzer.h:120
Herwig::WeightAnalyzer::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Herwig::WeightAnalyzer::sumNegativeGroupWeights
double sumNegativeGroupWeights
The sum of negative weights calculated by subprocess group weights.
Definition:
WeightAnalyzer.h:145
Herwig::WeightAnalyzer::nPositiveWeights
double nPositiveWeights
Total number of positive weights.
Definition:
WeightAnalyzer.h:161
Herwig::WeightAnalyzer::sumPositiveGroupWeights
double sumPositiveGroupWeights
The sum of positive weights calculated by subprocess group weights.
Definition:
WeightAnalyzer.h:140
Herwig::WeightAnalyzer::clone
virtual IBPtr clone() const
Make a simple clone of this object.
Herwig::WeightAnalyzer::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
Herwig::WeightAnalyzer::WeightAnalyzer
WeightAnalyzer()
The default constructor.
Herwig::WeightAnalyzer::negativeWeightDistribution
map< double, double > negativeWeightDistribution
Histogram of negative weight occurences.
Definition:
WeightAnalyzer.h:186
Herwig::WeightAnalyzer::sumNegativeWeights
double sumNegativeWeights
The sum of negative weights.
Definition:
WeightAnalyzer.h:130
Herwig::WeightAnalyzer::nNegativeWeights
double nNegativeWeights
Total number of negative weights.
Definition:
WeightAnalyzer.h:166
Herwig::WeightAnalyzer::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
Herwig::WeightAnalyzer::sumPositiveWeights
double sumPositiveWeights
The sum of positive weights.
Definition:
WeightAnalyzer.h:125
Herwig::WeightAnalyzer::positiveWeightDistribution
map< double, double > positiveWeightDistribution
Histogram of positive weight occurences.
Definition:
WeightAnalyzer.h:181
Herwig::WeightAnalyzer::doinitrun
virtual void doinitrun()
Initialize this object.
Herwig::WeightAnalyzer::operator=
WeightAnalyzer & operator=(const WeightAnalyzer &)=delete
The assignment operator is private and must never be called.
Herwig::WeightAnalyzer::sumGroupWeights
double sumGroupWeights
The sum of weights calculated by subprocess group weights.
Definition:
WeightAnalyzer.h:135
Herwig::WeightAnalyzer::dofinish
virtual void dofinish()
Finalize this object.
Herwig::WeightAnalyzer::maxDeviationEventWeight
double maxDeviationEventWeight
The maximum deviation of the event weight sum from the overall event weight.
Definition:
WeightAnalyzer.h:156
Herwig::WeightAnalyzer::maxDeviationGroupWeight
double maxDeviationGroupWeight
The maximum deviation of the group weight sum from one.
Definition:
WeightAnalyzer.h:150
ThePEG::AnalysisHandler
ThePEG::InterfacedBase::state
InitState state() const
ThePEG::PersistentIStream
ThePEG::PersistentOStream
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::tEventPtr
ThePEG::Ptr< Event >::transient_pointer tEventPtr
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6