Rivet analyses referenceDM1_1982_I169382Cross section for $e^+e^-\to K^+K^-\pi^+\pi^-$ between 1.3 and 2.2 GeVExperiment: DM1 (DCI) Inspire ID: 169382 Status: VALIDATED Authors:
Beam energies: ANY Run details:
1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/FinalState.hh"
4
5namespace Rivet {
6
7
8 /// @brief e+e- > K+K-pi+pi-
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",refData(1,1,1));
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(sqrtS()/GeV);
41 }
42
43
44 /// Normalise histograms etc., after the run
45 void finalize() {
46 scale(_cKpKmpippim, crossSection()/ sumOfWeights() /nanobarn);
47 Estimate1DPtr mult;
48 book(mult, 1, 1, 1);
49 barchart(_cKpKmpippim,mult);
50 }
51
52 /// @}
53
54
55 /// @name Histograms
56 /// @{
57 Histo1DPtr _cKpKmpippim;
58 /// @}
59
60
61 };
62
63
64 RIVET_DECLARE_PLUGIN(DM1_1982_I169382);
65
66
67}
|