rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

MARKI_1977_I119979

Measurement of $R$ for energies between 3.598 and 3.886 GeV
Experiment: MARKI (Spear)
Inspire ID: 119979
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev.Lett. 39 (1977) 526, 1977
Beams: e- e+
Beam energies: ANY
Run details:
  • e+ e- to hadrons and e+ e- to mu+ mu- (for normalization)

Measurement of $R$ and the hadronic cross section for energies between 3.598 and 3.886 GeV. The hadronic and muonic cross sections are also outputted to the yoda file so that ratio $R$ can be recalcuated if runs are combined.

Source code: MARKI_1977_I119979.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/FinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief Add a short analysis description here
 9  class MARKI_1977_I119979 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(MARKI_1977_I119979);
14
15
16    /// @name Analysis methods
17    /// @{
18
19    /// Book histograms and initialise projections before the run
20    void init() {
21      declare(FinalState(), "FS");
22      // Book histograms
23      book(_c_hadrons, "/TMP/sigma_hadrons");
24      book(_c_muons, "/TMP/sigma_muons");
25    }
26
27
28    /// Perform the per-event analysis
29    void analyze(const Event& event) {
30      const FinalState& fs = apply<FinalState>(event, "FS");
31
32      map<long,int> nCount;
33      int ntotal(0);
34      for (const Particle& p : fs.particles()) {
35	nCount[p.pid()] += 1;
36	++ntotal;
37      }
38      // mu+mu- + photons
39      if(nCount[-13]==1 and nCount[13]==1 &&
40	 ntotal==2+nCount[22])
41	_c_muons->fill();
42      // everything else
43      else
44	_c_hadrons->fill();
45    }
46
47
48    /// Normalise histograms etc., after the run
49    void finalize() {
50      // R
51      Estimate0D R = *_c_hadrons/ *_c_muons;
52      double fact = crossSection()/ sumOfWeights() /nanobarn;
53      double sig_h = _c_hadrons->val()*fact;
54      double err_h = _c_hadrons->err()*fact;
55      double sig_m = _c_muons  ->val()*fact;
56      double err_m = _c_muons  ->err()*fact;
57      Estimate1DPtr hadrons;
58      book(hadrons, "simga_hadrons");
59      Estimate1DPtr muons;
60      book(muons, "sigma_muons");
61      Estimate1DPtr mult1;
62      book(mult1, 1,1,1);
63      Estimate1DPtr mult2;
64      book(mult2, 2,1,1);
65      for (auto& b : mult1->bins()) {
66        if (inRange(sqrtS()/GeV, b.xMin(), b.xMax())) {
67          b.set(R.val(), R.errPos());
68          mult2->bin(b.index()).set(R.val(), R.errPos());
69          hadrons->bin(b.index()).set(sig_h, err_h);
70          muons  ->bin(b.index()).set(sig_m, err_m);
71        }
72      }
73    }
74
75    /// @}
76
77
78    /// @name Histograms
79    /// @{
80    CounterPtr _c_hadrons, _c_muons;
81    /// @}
82
83
84  };
85
86
87  RIVET_DECLARE_PLUGIN(MARKI_1977_I119979);
88
89
90}