rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

PLUTO_1979_I140818

Hadronic cross section in $e^+e^-$ collisions for energies between 9.4 to 9.48
Experiment: PLUTO (PETRA)
Inspire ID: 140818
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Z.Phys. C1 (1979) 343, 1979
Beams: e- e+
Beam energies: (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7); (4.7, 4.7) GeV
Run details:
  • e+ e- to hadrons and e+ e- to mu+ mu- (for normalization)

Measurement of the hadronic cross section in $e^+e^-$ collisions for energies between 9.4 to 9.48 GeV.

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