rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CLEO_1983_I188803

Measurement of hadronic cross section at the $\Upsilon(1S)$, 9.461 GeV
Experiment: CLEO (CESR)
Inspire ID: 188803
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev. D57 (1998) 1350-1358, 1998
Beams: e- e+
Beam energies: ANY
Run details:
  • e+ e- to hadrons

Measurement of the hadronic cross section in $e^+e^-$ collisions by CLEO at the $\Upsilon(1S)$, 9.461 GeV.

Source code: CLEO_1983_I188803.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 CLEO_1983_I188803 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(CLEO_1983_I188803);
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");
26    }
27
28
29    /// Perform the per-event analysis
30    void analyze(const Event& event) {
31      const FinalState& fs = apply<FinalState>(event, "FS");
32
33      map<long,int> nCount;
34      int ntotal(0);
35      for (const Particle& p : fs.particles()) {
36	nCount[p.pid()] += 1;
37	++ntotal;
38      }
39      // mu+mu- + photons
40      if(nCount[-13]==1 and nCount[13]==1 &&
41	 ntotal==2+nCount[22])
42	vetoEvent;
43      // everything else
44      else
45	_c_hadrons->fill();
46    }
47
48
49    /// Normalise histograms etc., after the run
50    void finalize() {
51      double fact = crossSection()/ sumOfWeights() /nanobarn;
52      double sig_h = _c_hadrons->val()*fact;
53      double err_h = _c_hadrons->err()*fact;
54      Estimate1DPtr mult;
55      book(mult, 2, 1, 1);
56      for (auto& b : mult->bins()) {
57        if (inRange(sqrtS()/GeV, b.xMin(), b.xMax())) {
58          b.set(sig_h, err_h);
59        }
60      }
61    }
62
63    /// @}
64
65
66    /// @name Histograms
67    /// @{
68    CounterPtr _c_hadrons;
69    /// @}
70
71
72  };
73
74
75  RIVET_DECLARE_PLUGIN(CLEO_1983_I188803);
76
77
78}