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 | // -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/UnstableParticles.hh"
#include "Rivet/Projections/DecayedParticles.hh"
namespace Rivet {
/// @brief Bbar0 -> Lambda_c+ pbar pi+ pi-
class BABAR_2013_I1217425 : public Analysis {
public:
/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(BABAR_2013_I1217425);
/// @name Analysis methods
/// @{
/// Book histograms and initialise projections before the run
void init() {
// Initialise and register projections
UnstableParticles ufs = UnstableParticles(Cuts::abspid==511);
declare(ufs, "UFS");
DecayedParticles B0(ufs);
// treat Lambda_c, Sigma_c and sigma_c* as stable
B0.addStable( 4122);
B0.addStable(-4122);
B0.addStable( 4112);
B0.addStable(-4112);
B0.addStable( 4212);
B0.addStable(-4212);
B0.addStable( 4222);
B0.addStable(-4222);
B0.addStable( 4114);
B0.addStable(-4114);
B0.addStable( 4214);
B0.addStable(-4214);
B0.addStable( 4224);
B0.addStable(-4224);
declare(B0, "B0");
// histograms
for(unsigned int ix=0;ix<5;++ix) {
for(unsigned int iy=0;iy<6;++iy) {
if( (ix<3 && iy>=3) or (ix==4 && iy>=4) ) continue;
book(_h[ix][iy],1+ix,1,1+iy);
}
}
}
void analyze(const Event& event) {
static const map<PdgId,unsigned int> & mode1 = { { 4112,1},{-2212,1}, { 211,1}};
static const map<PdgId,unsigned int> & mode1CC = { {-4112,1},{ 2212,1}, {-211,1}};
static const map<PdgId,unsigned int> & mode2 = { { 4222,1},{-2212,1}, {-211,1}};
static const map<PdgId,unsigned int> & mode2CC = { {-4222,1},{ 2212,1}, { 211,1}};
static const map<PdgId,unsigned int> & mode3 = { { 4224,1},{-2212,1}, {-211,1}};
static const map<PdgId,unsigned int> & mode3CC = { {-4224,1},{ 2212,1}, { 211,1}};
static const map<PdgId,unsigned int> & mode4 = { { 4122,1},{-2212,1}, { 211,1}, {-211,1}};
static const map<PdgId,unsigned int> & mode4CC = { {-4122,1},{ 2212,1}, { 211,1}, {-211,1}};
DecayedParticles B0 = apply<DecayedParticles>(event, "B0");
// loop over particles
for(unsigned int ix=0;ix<B0.decaying().size();++ix) {
int sign = 1,imode=-1, ibaryon,ipi=-211;
if (B0.decaying()[ix].pid()<0 && B0.modeMatches(ix,3,mode1)) {
sign=1;
imode=0;
ibaryon=4112;
ipi=211;
}
else if (B0.decaying()[ix].pid()>0 && B0.modeMatches(ix,3,mode1CC)) {
sign=-1;
imode=0;
ibaryon=4112;
ipi=211;
}
else if (B0.decaying()[ix].pid()<0 && B0.modeMatches(ix,3,mode2)) {
sign=1;
imode=1;
ibaryon=4222;
}
else if (B0.decaying()[ix].pid()>0 && B0.modeMatches(ix,3,mode2CC)) {
sign=-1;
imode=1;
ibaryon=4222;
}
else if (B0.decaying()[ix].pid()<0 && B0.modeMatches(ix,3,mode3)) {
sign=1;
imode=2;
ibaryon=4224;
}
else if (B0.decaying()[ix].pid()>0 && B0.modeMatches(ix,3,mode3CC)) {
sign=-1;
imode=2;
ibaryon=4224;
}
else if (B0.decaying()[ix].pid()<0 && B0.modeMatches(ix,4,mode4)) {
sign=1;
imode=3;
ibaryon=4122;
}
else if (B0.decaying()[ix].pid()>0 && B0.modeMatches(ix,4,mode4CC)) {
sign=-1;
imode=3;
ibaryon=4122;
}
else
continue;
const Particle & SigC = B0.decayProducts()[ix].at( sign*ibaryon)[0];
const Particle & pbar = B0.decayProducts()[ix].at(-sign*2212 )[0];
const Particle & pim = B0.decayProducts()[ix].at( sign*ipi )[0];
if(imode<=2) {
_h[imode][0]->fill((SigC.momentum()+pim .momentum()).mass());
_h[imode][1]->fill((SigC.momentum()+pbar.momentum()).mass());
_h[imode][2]->fill((pbar.momentum()+pim .momentum()).mass());
}
else {
const Particle & pip = B0.decayProducts()[ix].at(-sign*ipi )[0];
_h[imode][0]->fill((SigC.momentum()+pip .momentum()).mass());
_h[imode][1]->fill((SigC.momentum()+pim .momentum()).mass());
_h[imode][2]->fill((pbar.momentum()+pip .momentum()).mass());
_h[imode][3]->fill((pbar.momentum()+pim .momentum()).mass());
FourMomentum ppipi = pip .momentum()+pim .momentum();
_h[imode][4]->fill(ppipi.mass());
FourMomentum plam = SigC.momentum()+pbar.momentum();
_h[imode][5]->fill(plam.mass());
_h[4][0]->fill((ppipi+pbar.momentum()).mass());
_h[4][1]->fill((ppipi+SigC.momentum()).mass());
_h[4][2]->fill((plam+pim.momentum()).mass());
_h[4][3]->fill((plam+pip.momentum()).mass());
}
}
}
/// Normalise histograms etc., after the run
void finalize() {
for(unsigned int ix=0;ix<5;++ix) {
for(unsigned int iy=0;iy<6;++iy) {
if( (ix<3 && iy>=3) or (ix==4 && iy>=5) ) continue;
normalize(_h[ix][iy],1.,false);
}
}
}
/// @}
/// @name Histograms
/// @{
Histo1DPtr _h[5][6];
/// @}
};
RIVET_DECLARE_PLUGIN(BABAR_2013_I1217425);
}
|