herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
LEPMultiplicityCount.h
1// -*- C++ -*-
2//
3// LEPMultiplicityCount.h is a part of Herwig - A multi-purpose Monte Carlo event generator
4// Copyright (C) 2002-2019 The Herwig Collaboration
5//
6// Herwig is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef HERWIG_LEPMultiplicityCount_H
10#define HERWIG_LEPMultiplicityCount_H
11//
12// This is the declaration of the LEPMultiplicityCount class.
13//
14
15#include "ThePEG/Handlers/AnalysisHandler.h"
16#include "ThePEG/Repository/Repository.h"
17#include "ThePEG/PDT/ParticleData.h"
18#include "Herwig/Utilities/Histogram.h"
19#include "MultiplicityInfo.h"
20
21namespace Herwig {
22
23using namespace ThePEG;
24
25
34
35public:
36
41
42public:
43
63 virtual void analyze(tEventPtr event, long ieve, int loop, int state);
64
70 virtual void analyze(const tPVector & particles);
71
74
75public:
76
84
90 void persistentInput(PersistentIStream & is, int version);
92
99 static void Init();
100
101protected:
102
109 virtual IBPtr clone() const;
110
115 virtual IBPtr fullclone() const;
117
118protected:
119
126 virtual void dofinish();
128
129private:
130
136
137private:
138
142 vector<long> _particlecodes;
143
147 vector<double> _multiplicity;
148
152 vector<double> _error;
153
157 vector<unsigned int> _species;
158
162 map<long,MultiplicityInfo> _data;
163
165 map<long,Histogram> _histograms;
166
170 map<int,Histogram> _clusters;
171
175 map<int,Histogram> _primary;
176
180 map<long,long> _finalstatecount;
181
185 map<long,long> _collisioncount;
186
189
190};
191
192}
193
194#endif /* HERWIG_LEPMultiplicityCount_H */
The LEPMultiplicityCount class is designed to count particle multiplicities and compare them to LEP d...
virtual void analyze(const tPVector &particles)
Analyze the given vector of particles.
map< long, MultiplicityInfo > _data
Map of PDG codes to multiplicity info.
static void Init()
The standard Init function used to initialize the interfaces.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
map< long, long > _finalstatecount
Map of number of final-state particles to PDG code.
LEPMultiplicityCount & operator=(const LEPMultiplicityCount &)=delete
The assignment operator is private and must never be called.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
vector< double > _multiplicity
The multiplcity.
bool _makeHistograms
Make histograms of cluster mass dependence.
map< int, Histogram > _clusters
Histograms of the clusters after cluster splitting.
map< int, Histogram > _primary
Histograms of the primary clusters.
vector< unsigned int > _species
Species of particle.
LEPMultiplicityCount()
The default constructor.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
map< long, long > _collisioncount
Particles in hard process.
vector< long > _particlecodes
The PDG codes of the particles.
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
vector< double > _error
The error.
map< long, Histogram > _histograms
Histograms for cluster mass dependence.
virtual IBPtr clone() const
Make a simple clone of this object.
virtual void dofinish()
Finalize this object.
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
InitState state() const
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::Ptr< Event >::transient_pointer tEventPtr
vector< tPPtr > tPVector