rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

DM1_1982_I169382

Cross section for $e^+e^-\to K^+K^-\pi^+\pi^-$ between 1.3 and 2.2 GeV
Experiment: DM1 (DCI)
Inspire ID: 169382
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Lett. B110 (1982) 335-338, 1982
Beams: e+ e-
Beam energies: ANY
Run details:
  • e+e- to hadrons

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