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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
| // -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/UnstableParticles.hh"
namespace Rivet {
/// @brief D*(sJ) production
class BABAR_2006_I714447 : public Analysis {
public:
/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(BABAR_2006_I714447);
/// @name Analysis methods
///@{
/// Book histograms and initialise projections before the run
void init() {
// projections
declare(UnstableParticles(),"UFS");
// histograms
// dists
book(_s_2317 ,2,1,1);
book(_s_2460_1,3,1,1);
book(_s_2460_2,4,1,1);
book(_hel ,5,1,1);
// rates
book(_r_2317 ,1,1,1);
book(_r_2460_1,1,1,2);
book(_r_2460_2,1,1,3);
book(_r_2460_3,1,1,4);
book(_r_2460_4,1,1,5);
book(_r_2536 ,1,1,6);
}
/// Perform the per-event analysis
void analyze(const Event& event) {
for(const Particle & Ds: apply<UnstableParticles>(event,"UFS").particles(Cuts::pid==10433 or
Cuts::pid==20433 or
Cuts::pid==10431)) {
// cut of 3.2 GeV of the momentum
double mom=Ds.momentum().p3().mod();
if(mom<=3.2) continue;
if(Ds.abspid()==10431) {
_s_2317->fill(mom);
}
else if(Ds.abspid()==20433) {
_s_2460_1->fill(mom);
_s_2460_2->fill(mom);
}
int sign = Ds.pid()/Ds.abspid();
Particle DsStar;
bool doHelicity=false;
// identify the decay mode
if(Ds.children().size()==2) {
if(Ds.children()[0].pid()==sign*431 &&
Ds.children()[1].pid()==111) {
if(Ds.abspid()==10431) _r_2317->fill(10.58);
}
else if(Ds.children()[1].pid()==sign*431 &&
Ds.children()[0].pid()==111) {
if(Ds.abspid()==10431) _r_2317->fill(10.58);
}
else if(Ds.children()[0].pid()==sign*433 &&
Ds.children()[1].pid()==111) {
if(Ds.abspid()==20433) {
_r_2460_3->fill(10.58);
DsStar=Ds.children()[0];
doHelicity=true;
}
}
else if(Ds.children()[1].pid()==sign*433 &&
Ds.children()[0].pid()==111) {
if(Ds.abspid()==20433) {
_r_2460_3->fill(10.58);
DsStar=Ds.children()[1];
doHelicity=true;
}
}
else if(Ds.children()[0].pid()==sign*431 &&
Ds.children()[1].pid()==22) {
if(Ds.abspid()==20433) _r_2460_1->fill(10.58);
}
else if(Ds.children()[1].pid()==sign*431 &&
Ds.children()[0].pid()==22) {
if(Ds.abspid()==20433) _r_2460_1->fill(10.58);
}
if(doHelicity && DsStar.children().size()==2) {
Particle gamma;
doHelicity=false;
for(const Particle & p : DsStar.children()) {
if(p.pid()==22) {
doHelicity=true;
gamma=p;
}
}
if(doHelicity) {
LorentzTransform boost = LorentzTransform::mkFrameTransformFromBeta(Ds.momentum().betaVec());
FourMomentum pDsStar = boost.transform(DsStar.momentum());
FourMomentum pGamma = boost.transform(gamma .momentum());
LorentzTransform boost2 = LorentzTransform::mkFrameTransformFromBeta(pDsStar.betaVec());
FourMomentum pGamma2 = boost2.transform(pGamma);
double cTheta = pGamma2.p3().unit().dot(pDsStar.p3().unit());
_hel->fill(cTheta);
}
}
}
Particles D, pip, pi0, gamma;
unsigned int nstable(0);
findDecayProducts(Ds,D,pip,pi0,gamma,nstable);
if(nstable==3) {
if(D.size()==1&&pip.size()==2) {
if(Ds.abspid()==20433) {
_r_2460_4->fill(10.58);
}
else if(Ds.abspid()==10433) {
_r_2536 ->fill(10.58);
}
}
else if(D.size()==1&&pi0.size()==1&&gamma.size()==1) {
if(Ds.abspid()==20433)
_r_2460_2->fill(10.58);
}
}
}
}
void findDecayProducts(Particle parent, Particles & Ds, Particles & pip, Particles & pi0,
Particles & gamma, unsigned int & nstable) {
for(const Particle & p: parent.children()) {
if(p.pid()==111) {
pi0.push_back(p);
++nstable;
}
else if(p.pid()==22) {
gamma.push_back(p);
++nstable;
}
else if(p.abspid()==211) {
pip.push_back(p);
++nstable;
}
else if(p.abspid()==431) {
Ds.push_back(p);
++nstable;
}
else if(p.children().empty()) {
++nstable;
}
else
findDecayProducts(p,Ds,pip,pi0,gamma,nstable);
}
}
/// Normalise histograms etc., after the run
void finalize() {
normalize(_s_2317 ,1.,false);
normalize(_s_2460_1,1.,false);
normalize(_s_2460_2,1.,false);
normalize(_hel ,1.,false);
scale(_r_2317 ,crossSection()/femtobarn/sumOfWeights());
scale(_r_2460_1,crossSection()/femtobarn/sumOfWeights());
scale(_r_2460_2,crossSection()/femtobarn/sumOfWeights());
scale(_r_2460_3,crossSection()/femtobarn/sumOfWeights());
scale(_r_2460_4,crossSection()/femtobarn/sumOfWeights());
scale(_r_2536 ,crossSection()/femtobarn/sumOfWeights());
}
///@}
/// @name Histograms
///@{
Histo1DPtr _s_2317,_s_2460_1,_s_2460_2,_hel;
Histo1DPtr _r_2317,_r_2460_1,_r_2460_2,_r_2460_3,_r_2460_4,_r_2536;
///@}
};
RIVET_DECLARE_PLUGIN(BABAR_2006_I714447);
}
|