rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

LENA_1982_I179431

Measurement of $R$ between 7.4 and 9.4 GeV
Experiment: LENA (DORIS)
Inspire ID: 179431
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Z.Phys. C15 (1982) 299, 1982
Beams: e- e+
Beam energies: ANY
Run details:
  • e+ e- to hadrons and e+ e- to mu+ mu- (for normalization)

Measurement of $R$ in $e^+e^-$ collisions by LENA for energies between .4 and 9.4 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: LENA_1982_I179431.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/FinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief R measurement
 9  class LENA_1982_I179431 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(LENA_1982_I179431);
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      for (size_t i=0; i<2; ++i) {
26        const auto& ref = refData(i+1, 1, 1);
27        book(_h_hadrons[i], "d0"+to_string(i+1)+"_sigma_hadrons", ref);
28        book(_h_muons[i], "d0"+to_string(i+1)+"_sigma_muons", ref);
29      }
30      book(_c_hadrons, "d03_sigma_hadrons", refData<YODA::BinnedEstimate<string>>(3,1,1));
31      book(_c_muons, "d03_sigma_muons"   , refData<YODA::BinnedEstimate<string>>(3,1,1) );
32      for (const string& en : _c_hadrons.binning().edges<0>()) {
33        double end = std::stod(en)*GeV;
34        if(isCompatibleWithSqrtS(end)) {
35          _ecms = en;
36          break;
37        }
38      }
39      if(_ecms.empty() && !inRange(sqrtS()/GeV,7.4,9.43))
40        MSG_ERROR("Beam energy incompatible with analysis.");
41      if(_ecms.empty()) _ecms="OTHER";
42    }
43
44
45    /// Perform the per-event analysis
46    void analyze(const Event& event) {
47      const FinalState& fs = apply<FinalState>(event, "FS");
48
49      map<long,int> nCount;
50      int ntotal(0);
51      for (const Particle& p : fs.particles()) {
52        nCount[p.pid()] += 1;
53        ++ntotal;
54      }
55      // mu+mu- + photons
56      if (nCount[-13]==1 and nCount[13]==1 && ntotal==2+nCount[22]) {
57        _h_muons[0]->fill(sqrtS()/GeV);
58        _h_muons[1]->fill(sqrtS()/GeV);
59        _c_muons->fill(_ecms);
60      }
61      // everything else
62      else {
63        _h_hadrons[0]->fill(sqrtS()/GeV);
64        _h_hadrons[1]->fill(sqrtS()/GeV);
65        _c_hadrons->fill(_ecms);
66      }
67    }
68
69
70    /// Normalise histograms etc., after the run
71    void finalize() {
72      for(unsigned int ix=0;ix<2;++ix) {
73        Estimate1DPtr mult;
74        book(mult, ix+1, 1, 1);
75        divide(_h_hadrons[ix],_h_muons[ix],mult);
76      }
77      BinnedEstimatePtr<string> mult;
78      book(mult, 3, 1, 1);
79      divide(_c_hadrons,_c_muons,mult);
80    }
81
82    /// @}
83
84
85    /// @name Histograms
86    /// @{
87    BinnedHistoPtr<string> _c_hadrons, _c_muons;
88    Histo1DPtr _h_hadrons[2], _h_muons[2];
89    string _ecms;
90    /// @}
91
92
93  };
94
95
96  RIVET_DECLARE_PLUGIN(LENA_1982_I179431);
97
98
99}