herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
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 
21 namespace Herwig {
22 
23 using namespace ThePEG;
24 
25 
34 
35 public:
36 
41 
42 public:
43 
63  virtual void analyze(tEventPtr event, long ieve, int loop, int state);
64 
70  virtual void analyze(const tPVector & particles);
71 
74 
75 public:
76 
83  void persistentOutput(PersistentOStream & os) const;
84 
90  void persistentInput(PersistentIStream & is, int version);
92 
99  static void Init();
100 
101 protected:
102 
109  virtual IBPtr clone() const;
110 
115  virtual IBPtr fullclone() const;
117 
118 protected:
119 
126  virtual void dofinish();
128 
129 private:
130 
135  LEPMultiplicityCount & operator=(const LEPMultiplicityCount &) = delete;
136 
137 private:
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 */
map< long, MultiplicityInfo > _data
Map of PDG codes to multiplicity info.
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
map< int, Histogram > _primary
Histograms of the primary clusters.
map< long, long > _finalstatecount
Map of number of final-state particles to PDG code.
vector< double > _multiplicity
The multiplcity.
map< long, long > _collisioncount
Particles in hard process.
vector< unsigned int > _species
Species of particle.
bool _makeHistograms
Make histograms of cluster mass dependence.
vector< long > _particlecodes
The PDG codes of the particles.
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
map< long, Histogram > _histograms
Histograms for cluster mass dependence.
vector< double > _error
The error.
ThePEG::Ptr< Event >::transient_pointer tEventPtr
-*- C++ -*-
The LEPMultiplicityCount class is designed to count particle multiplicities and compare them to LEP d...
map< int, Histogram > _clusters
Histograms of the clusters after cluster splitting.
vector< tPPtr > tPVector