herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
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
10namespace Herwig {
11
12using namespace ThePEG;
13
21
22public:
23
28
29public:
30
50 virtual void analyze(tEventPtr event, long ieve, int loop, int state);
52
53protected:
54
59 virtual void doinitrun();
60
65 virtual void dofinish();
66
67
68public:
69
77
83 void persistentInput(PersistentIStream & is, int version);
85
92 static void Init();
93
94protected:
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
115private:
116
121
126
131
136
141
146
151
157
162
167
172
177
181 map<double,double> positiveWeightDistribution;
182
186 map<double,double> negativeWeightDistribution;
187
188
193
194
195
196private:
197
203
204};
205
206}
207
208#endif /* Herwig_WeightAnalyzer_H */
Here is the documentation of the WeightAnalyzer class.
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
bool gnuplot
Gnuplot output.
static void Init()
The standard Init function used to initialize the interfaces.
double maxNegativeWeight
The maximum absolute negative weight.
double maxPositiveWeight
The maximum postive weight.
double sumWeights
The sum of weights.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
double sumNegativeGroupWeights
The sum of negative weights calculated by subprocess group weights.
double nPositiveWeights
Total number of positive weights.
double sumPositiveGroupWeights
The sum of positive weights calculated by subprocess group weights.
virtual IBPtr clone() const
Make a simple clone of this object.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
WeightAnalyzer()
The default constructor.
map< double, double > negativeWeightDistribution
Histogram of negative weight occurences.
double sumNegativeWeights
The sum of negative weights.
double nNegativeWeights
Total number of negative weights.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
double sumPositiveWeights
The sum of positive weights.
map< double, double > positiveWeightDistribution
Histogram of positive weight occurences.
virtual void doinitrun()
Initialize this object.
WeightAnalyzer & operator=(const WeightAnalyzer &)=delete
The assignment operator is private and must never be called.
double sumGroupWeights
The sum of weights calculated by subprocess group weights.
virtual void dofinish()
Finalize this object.
double maxDeviationEventWeight
The maximum deviation of the event weight sum from the overall event weight.
double maxDeviationGroupWeight
The maximum deviation of the group weight sum from one.
InitState state() const
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::Ptr< Event >::transient_pointer tEventPtr