rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CMD2_2008_I782516

Cross section for $e^+e^-\to K^+K^-$ near the $\phi$ mass
Experiment: CMD2 (VEPP-2M)
Inspire ID: 782516
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Lett. B669 (2008) 217-222, 2008
Beams: e+ e-
Beam energies: ANY
Run details:
  • e+ e- to hadrons

Measurement of the cross section for $e^+e^-\to K^+K^-$ at near the $\phi$ mass.

Source code: CMD2_2008_I782516.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 CMD2_2008_I782516 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(CMD2_2008_I782516);
14
15
16    /// @name Analysis methods
17    /// @{
18
19    /// Book histograms and initialise projections before the run
20    void init() {
21
22      // Initialise and register projections
23      declare(FinalState(), "FS");
24
25      // Book histograms
26      book(_nkaon, "TMP/kaon");
27    }
28
29
30    /// Perform the per-event analysis
31    void analyze(const Event& event) {
32      const FinalState& fs = apply<FinalState>(event, "FS");
33      if(fs.particles().size()!=2) vetoEvent;
34      for (const Particle& p : fs.particles()) {
35	if(abs(p.pid())!=PID::KPLUS) vetoEvent;
36      }
37      _nkaon->fill();
38    }
39
40
41    /// Normalise histograms etc., after the run
42    void finalize() {
43      double sigma = _nkaon->val();
44      double error = _nkaon->err();
45      sigma *= crossSection()/ sumOfWeights() /nanobarn;
46      error *= crossSection()/ sumOfWeights() /nanobarn;
47      for(unsigned int ix=1;ix<3;++ix) {
48        Estimate1DPtr mult;
49        book(mult, ix, 1, 1);
50        for (auto& b : mult->bins()) {
51          if (inRange(sqrtS()/MeV, b.xMin(), b.xMax())) {
52            b.set(sigma, error);
53          }
54        }
55      }
56    }
57
58    /// @}
59
60
61    /// @name Histograms
62    /// @{
63    CounterPtr _nkaon;
64    /// @}
65
66
67  };
68
69
70  RIVET_DECLARE_PLUGIN(CMD2_2008_I782516);
71
72
73}