rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CLEO_1983_I188805

Measurement of the hadronic cross section between9.46 and 10.355 GeV
Experiment: CLEO (CESR)
Inspire ID: 188805
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev.Lett. 50 (1983) 807
Beams: e- e+
Beam energies: ANY
Run details:
  • e+e- to hadrons

Measurement of the hadronic cross section between 9.46 and 10.355 GeV

Source code: CLEO_1983_I188805.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/FinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief Hadronic cross section
 9  class CLEO_1983_I188805 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(CLEO_1983_I188805);
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, 1, 1, 1);
24      for (const string& en : _c_hadrons.binning().edges<0>()) {
25        double end = std::stod(en)*GeV;
26        if(isCompatibleWithSqrtS(end)) {
27          _ecms = en;
28          break;
29        }
30      }
31      if(_ecms.empty()) MSG_ERROR("Beam energy incompatible with analysis.");
32    }
33
34
35    /// Perform the per-event analysis
36    void analyze(const Event& event) {
37      const FinalState& fs = apply<FinalState>(event, "FS");
38
39      map<long,int> nCount;
40      int ntotal(0);
41      for (const Particle& p : fs.particles()) {
42	nCount[p.pid()] += 1;
43	++ntotal;
44      }
45      // mu+mu- + photons
46      if(nCount[-13]==1 and nCount[13]==1 &&
47	 ntotal==2+nCount[22])
48	vetoEvent;
49      // everything else
50      else
51	_c_hadrons->fill(_ecms);
52    }
53
54
55    /// Normalise histograms etc., after the run
56    void finalize() {
57      double fact = crossSection()/ sumOfWeights() /nanobarn;
58      scale(_c_hadrons, fact);
59    }
60
61    /// @}
62
63
64    /// @name Histograms
65    /// @{
66    BinnedHistoPtr<string> _c_hadrons, _c_muons;
67    string _ecms;
68    /// @}
69
70
71  };
72
73
74  RIVET_DECLARE_PLUGIN(CLEO_1983_I188805);
75
76
77}