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	Scatter2D temphisto(refData(ix, 1, 1));
62    	Scatter2DPtr mult;
63    	book(mult, ix, 1, 1);
64	for (size_t b = 0; b < temphisto.numPoints(); b++) {
65	  const double x  = temphisto.point(b).x();
66	  pair<double,double> ex = temphisto.point(b).xErrs();
67	  pair<double,double> ex2 = ex;
68	  if(ex2.first ==0.) ex2. first=0.0001;
69	  if(ex2.second==0.) ex2.second=0.0001;
70	  if (inRange(sqrtS()/MeV, x-ex2.first, x+ex2.second)) {
71	    mult->addPoint(x, sigma, ex, make_pair(error,error));
72	  }
73	  else {
74	    mult->addPoint(x, 0., ex, make_pair(0.,.0));
75	  }
76	}
77      }
78    }
79
80    //@}
81
82
83    /// @name Histograms
84    //@{
85    CounterPtr _nMeson[3];
86    //@}
87
88
89  };
90
91
92  // The hook for the plugin system
93  RIVET_DECLARE_PLUGIN(DM2_1991_I318558);
94
95
96}