rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CLEO_2006_I700665

Hadronic cross section at 3.773 GeV
Experiment: CLEO (CESR)
Inspire ID: 1650066
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev.Lett. 96 (2006) 092002, 2006
Beams: e- e+
Beam energies: ANY
Run details:
  • e+ e- to hadrons

Haronic cross section at 3.773 measured by CLEO.

Source code: CLEO_2006_I700665.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_2006_I700665 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(CLEO_2006_I700665);
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(_c_hadrons, "/TMP/sigma_hadrons");
23    }
24
25
26    /// Perform the per-event analysis
27    void analyze(const Event& event) {
28      const FinalState& fs = apply<FinalState>(event, "FS");
29
30      map<long,int> nCount;
31      int ntotal(0);
32      unsigned int nCharged(0);
33      for (const Particle& p : fs.particles()) {
34	nCount[p.pid()] += 1;
35	++ntotal;
36	if(PID::isCharged(p.pid())) ++nCharged;
37      }
38      // mu+mu- + photons
39      if(nCount[-13]==1 and nCount[13]==1 &&
40	 ntotal==2+nCount[22])
41	vetoEvent;
42      // everything else
43      else {
44	_c_hadrons->fill();
45      }
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      Scatter2D temphisto(refData(1, 1, 1));
55      Scatter2DPtr hadrons;
56      book(hadrons, 1, 1, 1);
57      for (size_t b = 0; b < temphisto.numPoints(); b++) {
58	const double x  = temphisto.point(b).x();
59	pair<double,double> ex = temphisto.point(b).xErrs();
60	pair<double,double> ex2 = ex;
61	if(ex2.first ==0.) ex2. first=0.0001;
62	if(ex2.second==0.) ex2.second=0.0001;
63	if (inRange(sqrtS()/GeV, x-ex2.first, x+ex2.second)) {
64	  hadrons->addPoint(x, sig_h, ex, make_pair(err_h,err_h));
65	}
66	else {
67	  hadrons->addPoint(x, 0., ex, make_pair(0.,.0));
68	}
69      }
70    }
71
72    //@}
73
74
75    /// @name Histograms
76    //@{
77    CounterPtr _c_hadrons;
78    //@}
79
80
81  };
82
83
84  // The hook for the plugin system
85  RIVET_DECLARE_PLUGIN(CLEO_2006_I700665);
86
87
88}