rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

OPAL_1992_I321190

Hadronic Z decay charged multiplicity measurement
Experiment: OPAL (LEP 1)
Inspire ID: 321190
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Z.Phys. C53 (1992) 539-554
Beams: e+ e-
Beam energies: (45.6, 45.6) GeV
Run details:
  • Hadronic Z decay events generated on the Z pole ($\sqrt{s} = 91.2$ GeV)

The charged particle multiplicity distribution of hadronic Z decays, as measured on the peak of the Z resonance using the OPAL detector at LEP.

Source code: OPAL_1992_I321190.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/ChargedFinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief OPAL LEP1 charged multiplicity, code basically a copy of the ALEPH one
 9  /// @author Peter Richardson
10  class OPAL_1992_I321190 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(OPAL_1992_I321190);
15
16
17    /// @name Analysis methods
18    /// @{
19
20    /// Book histograms and initialise projections before the run
21    void init() {
22      const ChargedFinalState cfs;
23      declare(cfs, "CFS");
24
25      book(_histChTot, 1, 1, 1);
26      book(_histAver , 5, 1, 1);
27    }
28
29
30    /// Perform the per-event analysis
31    void analyze(const Event& event) {
32      const FinalState& cfs = apply<FinalState>(event, "CFS");
33      MSG_DEBUG("Total charged multiplicity = " << cfs.size());
34      _histChTot->fill(cfs.size());
35      _histAver->fill(Ecm, cfs.size());
36    }
37
38
39    /// Normalise histograms etc., after the run
40    void finalize() {
41      scale(_histChTot, 100.0/sumOfWeights()); // %age (100)
42    }
43
44    /// @}
45
46
47  private:
48
49    /// @name Histograms
50    /// @{
51    BinnedHistoPtr<int> _histChTot;
52    BinnedProfilePtr<string> _histAver;
53    const string Ecm = "91.2";
54    /// @}
55
56  };
57
58
59  RIVET_DECLARE_PLUGIN(OPAL_1992_I321190);
60
61
62}