rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

KLOE_2005_I655225

Cross section for $e^+e^-\to\pi^+\pi^-$ below 1 GeV
Experiment: KLOE (DAPHNE)
Inspire ID: 655225
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Lett. B606 (2005) 12-24, 2005
Beams: e+ e-
Beam energies: (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.2, 0.2); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.5, 0.5); (0.5, 0.5); (0.5, 0.5); (0.5, 0.5); (0.5, 0.5) GeV
Run details:
  • e+e- to hadrons

Measurement of the cross section for $e^+e^-\to\pi^+\pi^-$ below 1 GeV

Source code: KLOE_2005_I655225.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/FinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief e+e- > pi+pi-
 9  class KLOE_2005_I655225 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(KLOE_2005_I655225);
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      // Book histograms
24      book(_npion, 2, 1, 1);
25      for (const string& en : _npion.binning().edges<0>()) {
26        double end = sqrt(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      if(fs.particles().size()!=2) vetoEvent;
40      for (const Particle& p : fs.particles()) {
41	if(abs(p.pid())!=PID::PIPLUS) vetoEvent;
42      }
43      _npion->fill(_ecms);
44    }
45
46
47    /// Normalise histograms etc., after the run
48    void finalize() {
49      scale(_npion,crossSection()/ sumOfWeights() /nanobarn);
50    }
51
52    /// @}
53
54
55    /// @name Histograms
56    /// @{
57    BinnedHistoPtr<string>  _npion;
58    string _ecms;
59    /// @}
60
61
62  };
63
64
65  RIVET_DECLARE_PLUGIN(KLOE_2005_I655225);
66
67
68}