rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

JADE_1979_I142874

Charged hadron multiplicity
Experiment: JADE (PETRA)
Inspire ID: 142874
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Lett. B88 (1979) 171-176, 1979
Beams: e- e+
Beam energies: (11.0, 11.0); (13.8, 13.8); (15.0, 15.0); (15.8, 15.8) GeV
Run details:
  • e+e- to hadrons

Charged hadron multiplicity at a range of energies, use with care as its not clear if $K_S^0$ decays are included of not, within the systematic error of 1.5

Source code: JADE_1979_I142874.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/ChargedFinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief Add a short analysis description here
 9  class JADE_1979_I142874 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(JADE_1979_I142874);
14
15
16    /// @name Analysis methods
17    //@{
18
19    /// Book histograms and initialise projections before the run
20    void init() {
21
22      // Initialise and register projections
23      declare(ChargedFinalState(), "FS");
24
25      // Book histograms
26      book(_nHadrons, "TMP/hadrons");
27
28    }
29
30
31    /// Perform the per-event analysis
32    void analyze(const Event& event) {
33      const ChargedFinalState& fs = apply<ChargedFinalState>(event, "FS");
34      _nHadrons->fill(fs.particles().size());
35
36    }
37
38
39    /// Normalise histograms etc., after the run
40    void finalize() {
41      double sigma = _nHadrons->val()/sumOfWeights();
42      double error = _nHadrons->err()/sumOfWeights();
43      Scatter2D temphisto(refData(2, 1, 1));
44      Scatter2DPtr mult;
45      book(mult, 2, 1, 1);
46      for (size_t b = 0; b < temphisto.numPoints(); b++) {
47	const double x  = temphisto.point(b).x();
48	pair<double,double> ex = temphisto.point(b).xErrs();
49	pair<double,double> ex2 = ex;
50	if(ex2.first ==0.) ex2. first=0.0001;
51	if(ex2.second==0.) ex2.second=0.0001;
52	if (inRange(sqrtS()/GeV, x-ex2.first, x+ex2.second)) {
53	  mult->addPoint(x, sigma, ex, make_pair(error,error));
54	}
55	else {
56	  mult->addPoint(x, 0., ex, make_pair(0.,.0));
57	}
58      }
59    }
60    //@}
61
62
63    /// @name Histograms
64    //@{
65    CounterPtr _nHadrons;
66    //@}
67
68
69  };
70
71
72  // The hook for the plugin system
73  RIVET_DECLARE_PLUGIN(JADE_1979_I142874);
74
75
76}