rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

DM2_1991_I318558

Cross section for $e^+e^-\to$ $K^+K^-\pi^0$ and $K^0_SK^\pm\pi^\mp$ for energies from 1.3 to 2.2 GeV
Experiment: DM2 (DCI)
Inspire ID: 318558
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Z.Phys. C52 (1991) 227-230, 1991
Beams: e+ e-
Beam energies: ANY
Run details:
  • e+e- to hadrons

Measurement of the cross section for $e^+e^-\to$ $K^+K^-\pi^0$ and $K^0_SK^\pm\pi^\mp$ for energies from 1.3 to 2.2 GeV.

Source code: DM2_1991_I318558.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 DM2_1991_I318558 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(DM2_1991_I318558);
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      // Book histograms
25      for (unsigned int ix=1;ix<3;++ix) {
26        stringstream ss;
27        ss << "TMP/n" << ix;
28        book(_nMeson[ix], ss.str());
29      }
30    }
31
32
33    /// Perform the per-event analysis
34    void analyze(const Event& event) {
35      const FinalState& fs = apply<FinalState>(event, "FS");
36
37      map<long,int> nCount;
38      int ntotal(0);
39      for (const Particle& p : fs.particles()) {
40	nCount[p.pid()] += 1;
41	++ntotal;
42      }
43      if(ntotal!=3) vetoEvent;
44      if(nCount[310]==1 &&
45	 ((nCount[ 211]==1&&nCount[-321]==1)||
46	  (nCount[-211]==1&&nCount[ 321]==1)))
47	 _nMeson[1]->fill();
48      else if(nCount[321]==1 &&
49	      nCount[-321]==1 && nCount[111]==1)
50	 _nMeson[2]->fill();
51    }
52
53
54    /// Normalise histograms etc., after the run
55    void finalize() {
56      for (unsigned int ix=1;ix<3;++ix) {
57        double sigma = _nMeson[ix]->val();
58        double error = _nMeson[ix]->err();
59        sigma *= crossSection()/ sumOfWeights() /nanobarn;
60        error *= crossSection()/ sumOfWeights() /nanobarn;
61        Estimate1DPtr mult;
62        book(mult, ix, 1, 1);
63        for (auto& b : mult->bins()) {
64          if (inRange(sqrtS()/MeV, b.xMin(), b.xMax())) {
65            b.set(sigma, error);
66          }
67        }
68      }
69    }
70
71    /// @}
72
73
74    /// @name Histograms
75    /// @{
76    CounterPtr _nMeson[3];
77    /// @}
78
79
80  };
81
82
83  RIVET_DECLARE_PLUGIN(DM2_1991_I318558);
84
85
86}