rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

PLUTO_1977_I110272

Measurement of $R$ for energies between 3.1 and 4.8 GeV
Experiment: PLUTO (DORIS)
Inspire ID: 110272
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Lett. B66 (1977) 395-400, 1977
Beams: e- e+
Beam energies: (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.8, 2.8); (2.3, 2.3); (2.4, 2.4) GeV
Run details:
  • e+ e- to hadrons and e+ e- to mu+ mu- (for normalization)

Measurement of $R$ in $e^+e^-$ collisions by PLUTO for energies between 3.1 and 4.8 GeV. The individual hadronic and muonic cross sections are also outputted to the yoda file so that ratio $R$ can be recalculated if runs are combined.

Source code: PLUTO_1977_I110272.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/FinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief R for energies between 3.1 and 4.8 GeV
 9  class PLUTO_1977_I110272 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(PLUTO_1977_I110272);
14
15
16    /// @name Analysis methods
17    /// @{
18
19    /// Book histograms and initialise projections before the run
20    void init() {
21      // Initialise and register projections
22      declare(FinalState(), "FS");
23
24      // Book histograms
25      book(_c_hadrons, "/TMP/sigma_hadrons", refData<YODA::BinnedEstimate<string>>(2,1,1));
26      book(_c_muons,   "/TMP/sigma_muons"  , refData<YODA::BinnedEstimate<string>>(2,1,1));
27      for (const string& en : _c_hadrons.binning().edges<0>()) {
28        double end = std::stod(en)*GeV;
29        if(isCompatibleWithSqrtS(end)) {
30          _ecms = en;
31          break;
32        }
33      }
34      if(_ecms.empty()) MSG_ERROR("Beam energy incompatible with analysis.");
35
36    }
37
38
39    /// Perform the per-event analysis
40    void analyze(const Event& event) {
41      const FinalState& fs = apply<FinalState>(event, "FS");
42
43      map<long,int> nCount;
44      int ntotal(0);
45      for (const Particle& p : fs.particles()) {
46	nCount[p.pid()] += 1;
47	++ntotal;
48      }
49      // mu+mu- + photons
50      if(nCount[-13]==1 and nCount[13]==1 &&
51	 ntotal==2+nCount[22])
52	_c_muons->fill(_ecms);
53      // everything else
54      else
55	_c_hadrons->fill(_ecms);
56    }
57
58
59    /// Normalise histograms etc., after the run
60    void finalize() {
61      BinnedEstimatePtr<string> mult;
62      book(mult, 2, 1, 1);
63      divide(_c_hadrons,_c_muons,mult);
64    }
65
66    /// @}
67
68
69    /// @name Histograms
70    /// @{
71    BinnedHistoPtr<string> _c_hadrons, _c_muons;
72    string _ecms;
73    /// @}
74
75
76  };
77
78
79  RIVET_DECLARE_PLUGIN(PLUTO_1977_I110272);
80
81
82}