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
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/ChargedFinalState.hh"

namespace Rivet {


  /// @brief Charged hadron multiplicity at 29 GeV from HRS experiment
  class HRS_1986_I18502 : public Analysis {
  public:

    /// Constructor
    DEFAULT_RIVET_ANALYSIS_CTOR(HRS_1986_I18502);


    /// @name Analysis methods
    //@{

    /// Book histograms and initialise projections before the run
    void init() {
      const ChargedFinalState cfs;
      declare(cfs, "CFS");

      _histChTot = bookHisto1D(1, 1, 1);
      _histAver  = bookProfile1D(3, 1, 1);
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {
      const FinalState& cfs = apply<FinalState>(event, "CFS");
      MSG_DEBUG("Total charged multiplicity = " << cfs.size());
      _histChTot->fill(cfs.size(), event.weight());
      _histAver->fill(_histAver->bin(0).xMid(),cfs.size(),event.weight());
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      scale(_histChTot, 200.0/sumOfWeights()); // bin width (2) and %age (100)
    }

    //@}


  private:

    /// @name Histograms
    //@{
    Histo1DPtr _histChTot;
    Profile1DPtr _histAver;
    //@}
  };


  // The hook for the plugin system
  DECLARE_RIVET_PLUGIN(HRS_1986_I18502);


}