herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
Analysis
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
46
long
actualCount
;
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
90
class
LEPBMultiplicity
:
public
AnalysisHandler
{
91
92
public
:
93
97
LEPBMultiplicity
();
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 */
Herwig::LEPBMultiplicity
The LEPBBMultiplicity class is designed to compare the production rates of , , and B-baryons in B ev...
Definition:
LEPBMultiplicity.h:90
Herwig::LEPBMultiplicity::clone
virtual IBPtr clone() const
Make a simple clone of this object.
Definition:
LEPBMultiplicity.h:141
Herwig::LEPBMultiplicity::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Definition:
LEPBMultiplicity.h:147
Herwig::LEPBMultiplicity::operator=
LEPBMultiplicity & operator=(const LEPBMultiplicity &)=delete
The assignment operator is private and must never be called.
Herwig::LEPBMultiplicity::dofinish
virtual void dofinish()
Finalize this object.
Herwig::LEPBMultiplicity::LEPBMultiplicity
LEPBMultiplicity()
The default constructor.
Herwig::LEPBMultiplicity::_data
map< long, BranchingInfo > _data
Map of PDG codes to multiplicity info.
Definition:
LEPBMultiplicity.h:174
Herwig::LEPBMultiplicity::analyze
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
Herwig::LEPBMultiplicity::Init
static void Init()
The standard Init function used to initialize the interfaces.
ThePEG::AnalysisHandler
ThePEG::InterfacedBase::state
InitState state() const
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::tEventPtr
ThePEG::Ptr< Event >::transient_pointer tEventPtr
Herwig::BranchingInfo
Struct for the multiplcity data.
Definition:
LEPBMultiplicity.h:25
Herwig::BranchingInfo::BranchingInfo
BranchingInfo(double mult=0., double error=0.)
Default constructor.
Herwig::BranchingInfo::obsBranching
double obsBranching
The observed multiplicity.
Definition:
LEPBMultiplicity.h:36
Herwig::BranchingInfo::nSigma
double nSigma(long N, BranchingInfo den=BranchingInfo())
Is the result more than from the experimental result.
Herwig::BranchingInfo::simError
double simError(long N, BranchingInfo den=BranchingInfo())
The error on the average number per event.
Herwig::BranchingInfo::simBranching
double simBranching(long N, BranchingInfo den=BranchingInfo())
The average fraction per quark.
Herwig::BranchingInfo::bargraph
string bargraph(long N, BranchingInfo den=BranchingInfo())
Plot standard error in a simple barchart.
Herwig::BranchingInfo::obsError
double obsError
The error on the observed multiplicity.
Definition:
LEPBMultiplicity.h:41
Herwig::BranchingInfo::sumofsquares
double sumofsquares
Sum of squares of number per event for error.
Definition:
LEPBMultiplicity.h:51
Herwig::BranchingInfo::actualCount
long actualCount
Number of particles of this type.
Definition:
LEPBMultiplicity.h:46
Generated on Thu Jun 20 2024 17:50:52 for Herwig by
1.9.6