herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
LEPBMultiplicity.h
1 // -*- C++ -*-
2 //
3 // LEPBMultiplicity.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_LEPBMultiplicity_H
10 #define HERWIG_LEPBMultiplicity_H
11 //
12 // This is the declaration of the LEPBMultiplicity class.
13 //
14 
15 #include "ThePEG/Handlers/AnalysisHandler.h"
16 
17 namespace Herwig {
18 
19 using namespace ThePEG;
20 
21 
25 struct BranchingInfo {
31  BranchingInfo(double mult=0.,double error=0.);
32 
36  double obsBranching;
37 
41  double obsError;
42 
47 
51  double sumofsquares;
52 
58  double simBranching(long N,BranchingInfo den=BranchingInfo());
59 
65  double simError(long N,BranchingInfo den=BranchingInfo());
66 
72  double nSigma(long N,BranchingInfo den=BranchingInfo());
73 
79  string bargraph(long N,BranchingInfo den=BranchingInfo());
80 };
81 
91 
92 public:
93 
98 
99 public:
100 
120  virtual void analyze(tEventPtr event, long ieve, int loop, int state);
122 
123 public:
124 
131  static void Init();
132 
133 protected:
134 
141  virtual IBPtr clone() const {return new_ptr(*this);}
142 
147  virtual IBPtr fullclone() const {return new_ptr(*this);}
149 
150 protected:
151 
158  virtual void dofinish();
160 
161 private:
162 
167  LEPBMultiplicity & operator=(const LEPBMultiplicity &) = delete;
168 
169 private:
170 
174  map<long,BranchingInfo> _data;
175 };
176 
177 }
178 
179 #endif /* HERWIG_LEPBMultiplicity_H */
double obsBranching
The observed multiplicity.
The LEPBBMultiplicity class is designed to compare the production rates of , , and B-baryons in B ev...
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual IBPtr clone() const
Make a simple clone of this object.
Struct for the multiplcity data.
ThePEG::Ptr< Event >::transient_pointer tEventPtr
long actualCount
Number of particles of this type.
-*- C++ -*-
double sumofsquares
Sum of squares of number per event for error.
double obsError
The error on the observed multiplicity.
map< long, BranchingInfo > _data
Map of PDG codes to multiplicity info.