rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

SND_2016_I1484677

Cross section for $e^+e^-\to K^+K^-$ between 1.05 and 2 GeV
Experiment: SND (VEPP-2M)
Inspire ID: 1484677
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev. D94 (2016) no.11, 112006
Beams: e+ e-
Beam energies: ANY
Run details:
  • e+ e- to hadrons

Measurement of the cross section for $e^+e^-\to K^+K^-$ at energies between 1.05 and 2 GeV

Source code: SND_2016_I1484677.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 SND_2016_I1484677 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(SND_2016_I1484677);
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()/GeV, 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(SND_2016_I1484677);
71
72
73}