1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
| // -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/UnstableParticles.hh"
namespace Rivet {
/// @brief Upsilon -> Upsilon pi+pi-
class BELLE_2017_I1610301 : public Analysis {
public:
/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(BELLE_2017_I1610301);
/// @name Analysis methods
///@{
/// Book histograms and initialise projections before the run
void init() {
// Initialise and register projections
declare(UnstableParticles(),"UFS");
for(unsigned int ix=0;ix<4;++ix) {
book(_h_mpipi [ix],1,1,ix+1);
book(_h_ctheta[ix],2,1,ix+1);
}
}
void findDecayProducts(const Particle & mother,
unsigned int & nstable,
Particles& pip, Particles& pim,
Particles& pi0, Particles & onium) {
for(const Particle & p : mother.children()) {
int id = p.pid();
if ( id == PID::PIMINUS) {
pim.push_back(p);
++nstable;
}
else if (id == PID::PIPLUS) {
pip.push_back(p);
++nstable;
}
else if (id == PID::PI0) {
pi0.push_back(p);
++nstable;
}
else if (abs(id)%1000==443 || abs(id)%1000==553) {
onium.push_back(p);
++nstable;
}
else if ( !p.children().empty() ) {
findDecayProducts(p,nstable,pip,pim,pi0,onium);
}
else
++nstable;
}
}
/// Perform the per-event analysis
void analyze(const Event& event) {
for(const Particle& ups : apply<UnstableParticles>(event, "UFS").particles(Cuts::pid==100553 or
Cuts::pid==200553 or
Cuts::pid==300553)) {
unsigned int nstable(0);
Particles pip, pim, pi0, onium;
findDecayProducts(ups,nstable,pip,pim,pi0,onium);
// pions and no of products
if(pip.size()!=1 || pim.size() !=1 || nstable !=3) continue;
// check for onium
if(onium.size() !=1) continue;
if(!(onium[0].pid()==553 || (ups.pid()==300553 && onium[0].pid()==100553))) continue;
FourMomentum q = pip[0].momentum()+pim[0].momentum();
// boost particles to upsilon rest frame
LorentzTransform boost1 = LorentzTransform::mkFrameTransformFromBeta(ups.momentum().betaVec());
FourMomentum ppi = boost1.transform(pip[0].momentum());
FourMomentum pUps = boost1.transform(onium[0].momentum());
q = boost1.transform(q);
LorentzTransform boost2 = LorentzTransform::mkFrameTransformFromBeta(q.betaVec());
ppi = boost2.transform(ppi);
pUps = boost2.transform(pUps);
double ctheta = ppi.p3().unit().dot(pUps.p3().unit());
if(ups.pid()==100553) {
_h_mpipi[0]->fill(q.mass());
_h_ctheta[0]->fill(ctheta);
}
else if(ups.pid()==200553) {
_h_mpipi[1]->fill(q.mass());
_h_ctheta[1]->fill(ctheta);
}
else if(ups.pid()==300553) {
if(onium[0].pid()==553) {
_h_mpipi[2]->fill(q.mass());
_h_ctheta[2]->fill(ctheta);
}
else {
_h_mpipi[3]->fill(q.mass());
_h_ctheta[3]->fill(ctheta);
}
}
}
}
/// Normalise histograms etc., after the run
void finalize() {
for(unsigned int ix=0;ix<4;++ix) {
normalize(_h_mpipi [ix]);
normalize(_h_ctheta[ix]);
}
}
///@}
/// @name Histograms
///@{
Histo1DPtr _h_mpipi [4];
Histo1DPtr _h_ctheta[4];
///@}
};
RIVET_DECLARE_PLUGIN(BELLE_2017_I1610301);
}
|