Rivet analyses referenceBELLE_2008_I764099Cross Section for e+e−→Υ(1,2,3S)π+π− and Υ(1S)K+K− at 10.87 GeVExperiment: BELLE (KEKB) Inspire ID: 764099 Status: VALIDATED Authors:
Beam energies: (5.4, 5.4) GeV Run details:
Measurement of the cross section for e+e−→Υ(1,2,3S)π+π− and Υ(1S)K+K− at 10.87 GeV measured by BELLE. Source code: BELLE_2008_I764099.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/FinalState.hh"
4#include "Rivet/Projections/UnstableParticles.hh"
5
6namespace Rivet {
7
8
9 /// @brief Add a short analysis description here
10 class BELLE_2008_I764099 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(BELLE_2008_I764099);
15
16
17 /// @name Analysis methods
18 /// @{
19
20 /// Book histograms and initialise projections before the run
21 void init() {
22 declare(FinalState(), "FS");
23 declare(UnstableParticles(), "UFS");
24 book(_nUps1pipi, 1, 1, 1);
25 book(_nUps2pipi, 2, 1, 1);
26 book(_nUps3pipi, 3, 1, 1);
27 book(_nUps1KK, 4, 1, 1);
28 }
29
30 void findChildren(const Particle & p,map<long,int> & nRes, int &ncount) {
31 for (const Particle &child : p.children()) {
32 if(child.children().empty()) {
33 --nRes[child.pid()];
34 --ncount;
35 }
36 else
37 findChildren(child,nRes,ncount);
38 }
39 }
40
41 /// Perform the per-event analysis
42 void analyze(const Event& event) {
43 const FinalState& fs = apply<FinalState>(event, "FS");
44 map<long,int> nCount;
45 int ntotal(0);
46 for (const Particle& p : fs.particles()) {
47 nCount[p.pid()] += 1;
48 ++ntotal;
49 }
50 const FinalState& ufs = apply<FinalState>(event, "UFS");
51 for (const Particle& p : ufs.particles()) {
52 if(p.children().empty()) continue;
53 if(p.pid() != 553 &&
54 p.pid() != 100553 &&
55 p.pid() != 200553 ) continue;
56 map<long,int> nRes = nCount;
57 int ncount = ntotal;
58 findChildren(p,nRes,ncount);
59 if(ncount!=2) continue;
60 bool matched = true;
61 for(auto const & val : nRes) {
62 if(abs(val.first)==321 || abs(val.first)==211) {
63 continue;
64 }
65 else if(val.second!=0) {
66 matched = false;
67 break;
68 }
69 }
70 if(matched) {
71 if(nRes[211]==1 && nRes[-211]==1 ) {
72 if(p.pid()==553)
73 _nUps1pipi->fill("10.87"s);
74 if(p.pid()==100553)
75 _nUps2pipi->fill("10.87"s);
76 if(p.pid()==200553)
77 _nUps3pipi->fill("10.87"s);
78 }
79 else if(nRes[321]==1 && nRes[-321]==1) {
80 if(p.pid()==553)
81 _nUps1KK->fill("10.87"s);
82 }
83 }
84 }
85 }
86
87
88 /// Normalise histograms etc., after the run
89 void finalize() {
90 double fact = crossSection()/ sumOfWeights() /picobarn;
91 scale(_nUps1pipi,fact);
92 scale(_nUps2pipi,fact);
93 scale(_nUps3pipi,fact);
94 scale(_nUps1KK ,fact);
95 }
96
97 /// @}
98
99 /// @name Histograms
100 /// @{
101 BinnedHistoPtr<string> _nUps1pipi,_nUps2pipi,_nUps3pipi,_nUps1KK;
102 /// @}
103
104 };
105
106 RIVET_DECLARE_PLUGIN(BELLE_2008_I764099);
107
108}
|