rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

HRS_1986_I18502

Charged Hadron multiplicity at 29 GeV
Experiment: HRS (PEP)
Inspire ID: 18502
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev. D34 (1986) 3304
Beams: e+ e-
Beam energies: (14.5, 14.5) GeV
Run details:
  • Hadronic e+e- events at $\sqrt{s} = 29.$ GeV

The charged particle multiplicity distribution of hadronic $e^+e^-$ events, as measured at $\sqrt{s} = 29.$ GeV using the HRS detector at PEP.

Source code: HRS_1986_I18502.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/ChargedFinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief Charged hadron multiplicity at 29 GeV from HRS experiment
 9  class HRS_1986_I18502 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(HRS_1986_I18502);
14
15
16    /// @name Analysis methods
17    //@{
18
19    /// Book histograms and initialise projections before the run
20    void init() {
21      const ChargedFinalState cfs;
22      declare(cfs, "CFS");
23
24      book(_histChTot, 1, 1, 1);
25      book(_histAver,  3, 1, 1);
26    }
27
28
29    /// Perform the per-event analysis
30    void analyze(const Event& event) {
31      const FinalState& cfs = apply<FinalState>(event, "CFS");
32      MSG_DEBUG("Total charged multiplicity = " << cfs.size());
33      _histChTot->fill(cfs.size());
34      _histAver->fill(_histAver->bin(0).xMid(),cfs.size());
35    }
36
37
38    /// Normalise histograms etc., after the run
39    void finalize() {
40      scale(_histChTot, 200.0/sumOfWeights()); // bin width (2) and %age (100)
41    }
42
43    //@}
44
45
46  private:
47
48    /// @name Histograms
49    //@{
50    Histo1DPtr _histChTot;
51    Profile1DPtr _histAver;
52    //@}
53  };
54
55
56  // The hook for the plugin system
57  RIVET_DECLARE_PLUGIN(HRS_1986_I18502);
58
59
60}