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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
| // -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/FastJets.hh"
#include "Rivet/Projections/IdentifiedFinalState.hh"
#include "Rivet/Projections/PromptFinalState.hh"
#include "Rivet/Projections/DressedLeptons.hh"
#include "Rivet/Projections/VetoedFinalState.hh"
namespace Rivet {
/// @brief Measurement of the WZ production cross section at 13 TeV
class ATLAS_2016_I1469071 : public Analysis {
public:
/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(ATLAS_2016_I1469071);
/// @name Analysis methods
//@{
/// Book histograms and initialise projections before the run
void init() {
// Lepton cuts
Cut FS_Zlept = Cuts::abseta < 2.5 && Cuts::pT > 15*GeV;
FinalState fs;
Cut fs_z = Cuts::abseta < 2.5 && Cuts::pT > 15*GeV;
Cut fs_j = Cuts::abseta < 4.5 && Cuts::pT > 25*GeV;
// Get photons to dress leptons
PromptFinalState photons(Cuts::abspid == PID::PHOTON);
// Electrons and muons in Fiducial PS
PromptFinalState leptons(FinalState(fs_z && (Cuts::abspid == PID::ELECTRON || Cuts::abspid == PID::MUON)));
leptons.acceptTauDecays(false);
DressedLeptons dressedleptons(photons, leptons, 0.1, FS_Zlept, true);
declare(dressedleptons, "DressedLeptons");
// Electrons and muons in Total PS
PromptFinalState leptons_total(Cuts::abspid == PID::ELECTRON || Cuts::abspid == PID::MUON);
leptons_total.acceptTauDecays(false);
DressedLeptons dressedleptonsTotal(photons, leptons_total, 0.1, Cuts::open(), true);
declare(dressedleptonsTotal, "DressedLeptonsTotal");
// Promot neutrinos (yikes!)
IdentifiedFinalState nu_id;
nu_id.acceptNeutrinos();
PromptFinalState neutrinos(nu_id);
neutrinos.acceptTauDecays(false);
declare(neutrinos, "Neutrinos");
MSG_WARNING("\033[91;1mLIMITED VALIDITY - check info file for details!\033[m");
// Jets
VetoedFinalState veto;
veto.addVetoOnThisFinalState(dressedleptons);
FastJets jets(veto, FastJets::ANTIKT, 0.4);
declare(jets, "Jets");
// Book histograms
book(_h_eee , 1, 1, 1);
book(_h_mee , 1, 1, 2);
book(_h_emm , 1, 1, 3);
book(_h_mmm , 1, 1, 4);
book(_h_fid , 1, 1, 5);
book(_h_eee_Plus , 2, 1, 1);
book(_h_mee_Plus , 2, 1, 2);
book(_h_emm_Plus , 2, 1, 3);
book(_h_mmm_Plus , 2, 1, 4);
book(_h_fid_Plus , 2, 1, 5);
book(_h_eee_Minus, 3, 1, 1);
book(_h_mee_Minus, 3, 1, 2);
book(_h_emm_Minus, 3, 1, 3);
book(_h_mmm_Minus, 3, 1, 4);
book(_h_fid_Minus, 3, 1, 5);
book(_h_total , 6, 1, 1);
book(_h_Njets , 8, 1, 1);
}
void analyze(const Event& event) {
const vector<DressedLepton>& dressedleptons = apply<DressedLeptons>(event, "DressedLeptons").dressedLeptons();
const vector<DressedLepton>& dressedleptonsTotal = apply<DressedLeptons>(event, "DressedLeptonsTotal").dressedLeptons();
const Particles& neutrinos = apply<PromptFinalState>(event, "Neutrinos").particlesByPt();
Jets jets = apply<JetAlg>(event, "Jets").jetsByPt( (Cuts::abseta < 4.5) && (Cuts::pT > 25*GeV) );
if (dressedleptonsTotal.size() < 3 || neutrinos.size() < 1) vetoEvent;
//---Total PS: assign leptons to W and Z bosons using Resonant shape algorithm
// NB: This resonant shape algorithm assumes the Standard Model and can therefore
// NOT be used for any kind of reinterpretation in terms of new-physics models..
// Try Z pair of leptons 01
double MassZ01 = 0, MassW2 = 0;
if ( (dressedleptonsTotal[0].pid() ==-(dressedleptonsTotal[1].pid())) && (dressedleptonsTotal[2].abspid()==neutrinos[0].abspid()-1)){
MassZ01 = (dressedleptonsTotal[0].momentum()+dressedleptonsTotal[1].momentum()).mass();
MassW2 = (dressedleptonsTotal[2].momentum()+neutrinos[0].momentum()).mass();
}
// Try Z pair of leptons 02
double MassZ02 = 0, MassW1 = 0;
if ( (dressedleptonsTotal[0].pid()==-(dressedleptonsTotal[2].pid())) && (dressedleptonsTotal[1].abspid()==neutrinos[0].abspid()-1)){
MassZ02 = (dressedleptonsTotal[0].momentum()+dressedleptonsTotal[2].momentum()).mass();
MassW1 = (dressedleptonsTotal[1].momentum()+neutrinos[0].momentum()).mass();
}
// Try Z pair of leptons 12
double MassZ12 = 0, MassW0 = 0;
if ( (dressedleptonsTotal[1].pid()==-(dressedleptonsTotal[2].pid())) && (dressedleptonsTotal[0].abspid()==neutrinos[0].abspid()-1)){
MassZ12 = (dressedleptonsTotal[1].momentum()+dressedleptonsTotal[2].momentum()).mass();
MassW0 = (dressedleptonsTotal[0].momentum()+neutrinos[0].momentum()).mass();
}
double WeightZ1 = 1/(pow(MassZ01*MassZ01 - MZ_PDG*MZ_PDG,2) + pow(MZ_PDG*GammaZ_PDG,2));
double WeightW1 = 1/(pow(MassW2*MassW2 - MW_PDG*MW_PDG,2) + pow(MW_PDG*GammaW_PDG,2));
double WeightTotal1 = WeightZ1*WeightW1;
double M1 = -1*WeightTotal1;
double WeightZ2 = 1/(pow(MassZ02*MassZ02- MZ_PDG*MZ_PDG,2) + pow(MZ_PDG*GammaZ_PDG,2));
double WeightW2 = 1/(pow(MassW1*MassW1- MW_PDG*MW_PDG,2) + pow(MW_PDG*GammaW_PDG,2));
double WeightTotal2 = WeightZ2*WeightW2;
double M2 = -1*WeightTotal2;
double WeightZ3 = 1/(pow(MassZ12*MassZ12 - MZ_PDG*MZ_PDG,2) + pow(MZ_PDG*GammaZ_PDG,2));
double WeightW3 = 1/(pow(MassW0*MassW0 - MW_PDG*MW_PDG,2) + pow(MW_PDG*GammaW_PDG,2));
double WeightTotal3 = WeightZ3*WeightW3;
double M3 = -1*WeightTotal3;
int i = -1, j = -1, k = -1;
if ((M1 < M2 && M1 < M3) || (MassZ01 != 0 && MassW2 != 0 && MassZ02 == 0 && MassZ12 == 0)) {
i = 0; j = 1; k = 2;
}
if ((M2 < M1 && M2 < M3) || (MassZ02 != 0 && MassW1 != 0 && MassZ01 == 0 && MassZ12 == 0)) {
i = 0; j = 2; k = 1;
}
if ((M3 < M1 && M3 < M2) || (MassZ12 != 0 && MassW0 != 0 && MassZ01 == 0 && MassZ02 == 0)) {
i = 1; j = 2; k = 0;
}
///
if (i < 0 || j < 0 || k < 0) vetoEvent;
FourMomentum ZbosonTotal = dressedleptonsTotal[i].momentum()+dressedleptonsTotal[j].momentum();
if ( ZbosonTotal.mass() >= 66*GeV && ZbosonTotal.mass() <= 116*GeV ) _h_total->fill(13000);
//---end Total PS
//---Fiducial PS: assign leptons to W and Z bosons using Resonant shape algorithm
if (dressedleptons.size() < 3) vetoEvent;
int EventType = -1;
int Nel = 0, Nmu = 0;
for (const DressedLepton& l : dressedleptons) {
if (l.abspid() == 11) ++Nel;
if (l.abspid() == 13) ++Nmu;
}
if ( (Nel == 3) && (Nmu==0) ) EventType = 3;
if ( (Nel == 2) && (Nmu==1) ) EventType = 2;
if ( (Nel == 1) && (Nmu==2) ) EventType = 1;
if ( (Nel == 0) && (Nmu==3) ) EventType = 0;
int EventCharge = -dressedleptons[0].charge() * dressedleptons[1].charge() * dressedleptons[2].charge();
MassZ01 = 0; MassZ02 = 0; MassZ12 = 0;
MassW0 = 0; MassW1 = 0; MassW2 = 0;
// try Z pair of leptons 01
if (dressedleptons[0].pid() == -dressedleptons[1].pid()) {
MassZ01 = (dressedleptons[0].momentum() + dressedleptons[1].momentum()).mass();
MassW2 = (dressedleptons[2].momentum() + neutrinos[0].momentum()).mass();
}
// try Z pair of leptons 02
if (dressedleptons[0].pid() == -dressedleptons[2].pid()) {
MassZ02 = (dressedleptons[0].momentum() + dressedleptons[2].momentum()).mass();
MassW1 = (dressedleptons[1].momentum() + neutrinos[0].momentum()).mass();
}
// try Z pair of leptons 12
if (dressedleptons[1].pid() == -dressedleptons[2].pid()) {
MassZ12 = (dressedleptons[1].momentum() + dressedleptons[2].momentum()).mass();
MassW0 = (dressedleptons[0].momentum() + neutrinos[0].momentum()).mass();
}
WeightZ1 = 1/(pow(MassZ01*MassZ01 - MZ_PDG*MZ_PDG,2) + pow(MZ_PDG*GammaZ_PDG,2));
WeightW1 = 1/(pow(MassW2*MassW2 - MW_PDG*MW_PDG,2) + pow(MW_PDG*GammaW_PDG,2));
WeightTotal1 = WeightZ1*WeightW1;
M1 = -1*WeightTotal1;
WeightZ2 = 1/(pow(MassZ02*MassZ02- MZ_PDG*MZ_PDG,2) + pow(MZ_PDG*GammaZ_PDG,2));
WeightW2 = 1/(pow(MassW1*MassW1- MW_PDG*MW_PDG,2) + pow(MW_PDG*GammaW_PDG,2));
WeightTotal2 = WeightZ2*WeightW2;
M2 = -1*WeightTotal2;
WeightZ3 = 1/(pow(MassZ12*MassZ12 - MZ_PDG*MZ_PDG,2) + pow(MZ_PDG*GammaZ_PDG,2));
WeightW3 = 1/(pow(MassW0*MassW0 - MW_PDG*MW_PDG,2) + pow(MW_PDG*GammaW_PDG,2));
WeightTotal3 = WeightZ3*WeightW3;
M3 = -1*WeightTotal3;
if( (M1 < M2 && M1 < M3) || (MassZ01 != 0 && MassW2 != 0 && MassZ02 == 0 && MassZ12 == 0) ) {
i = 0; j = 1; k = 2;
}
if((M2 < M1 && M2 < M3) || (MassZ02 != 0 && MassW1 != 0 && MassZ01 == 0 && MassZ12 == 0) ) {
i = 0; j = 2; k = 1;
}
if((M3 < M1 && M3 < M2) || (MassZ12 != 0 && MassW0 != 0 && MassZ01 == 0 && MassZ02 == 0) ) {
i = 1; j = 2; k = 0;
}
FourMomentum Zlepton1 = dressedleptons[i].momentum();
FourMomentum Zlepton2 = dressedleptons[j].momentum();
FourMomentum Wlepton = dressedleptons[k].momentum();
FourMomentum Zboson = dressedleptons[i].momentum()+dressedleptons[j].momentum();
double Wboson_mT = sqrt( 2 * Wlepton.pT() * neutrinos[0].pt() * (1 - cos(deltaPhi(Wlepton, neutrinos[0]))) );
if (fabs(Zboson.mass()/GeV - MZ_PDG) >= 10.) vetoEvent;
if (Wboson_mT <= 30*GeV) vetoEvent;
if (Wlepton.pT() <= 20*GeV) vetoEvent;
if (deltaR(Zlepton1, Zlepton2) < 0.2) vetoEvent;
if (deltaR(Zlepton1, Wlepton) < 0.3) vetoEvent;
if (deltaR(Zlepton2, Wlepton) < 0.3) vetoEvent;
if (EventType == 3) _h_eee->fill(13000.);
if (EventType == 2) _h_mee->fill(13000.);
if (EventType == 1) _h_emm->fill(13000.);
if (EventType == 0) _h_mmm->fill(13000.);
_h_fid->fill(13000);
if (EventCharge == 1) {
if (EventType == 3) _h_eee_Plus->fill(13000.);
if (EventType == 2) _h_mee_Plus->fill(13000.);
if (EventType == 1) _h_emm_Plus->fill(13000.);
if (EventType == 0) _h_mmm_Plus->fill(13000.);
_h_fid_Plus->fill(13000);
} else {
if (EventType == 3) _h_eee_Minus->fill(13000.);
if (EventType == 2) _h_mee_Minus->fill(13000.);
if (EventType == 1) _h_emm_Minus->fill(13000.);
if (EventType == 0) _h_mmm_Minus->fill(13000.);
_h_fid_Minus->fill(13000);
}
if (jets.size() < 4) _h_Njets->fill(jets.size());
else _h_Njets->fill(4);
}
void finalize() {
// Print summary info
const double xs_pb(crossSection() / picobarn);
const double xs_fb(crossSection() / femtobarn);
const double sumw(sumOfWeights());
const double sf_pb(xs_pb / sumw);
const double sf_fb(xs_fb / sumw);
const float totalBR= 4*0.1086*0.033658; // W and Z leptonic branching fractions
scale(_h_fid, sf_fb/4.);
scale(_h_eee, sf_fb);
scale(_h_mee, sf_fb);
scale(_h_emm, sf_fb);
scale(_h_mmm, sf_fb);
scale(_h_fid_Plus, sf_fb/4.);
scale(_h_eee_Plus, sf_fb);
scale(_h_mee_Plus, sf_fb);
scale(_h_emm_Plus, sf_fb);
scale(_h_mmm_Plus, sf_fb);
scale(_h_fid_Minus, sf_fb/4.);
scale(_h_eee_Minus, sf_fb);
scale(_h_mee_Minus, sf_fb);
scale(_h_emm_Minus, sf_fb);
scale(_h_mmm_Minus, sf_fb);
scale(_h_Njets, sf_fb/4.);
scale(_h_total, sf_pb/totalBR);
}
//@}
private:
/// @name Histograms
//@{
Histo1DPtr _h_eee;
Histo1DPtr _h_mee;
Histo1DPtr _h_emm;
Histo1DPtr _h_mmm;
Histo1DPtr _h_fid;
Histo1DPtr _h_eee_Plus;
Histo1DPtr _h_mee_Plus;
Histo1DPtr _h_emm_Plus;
Histo1DPtr _h_mmm_Plus;
Histo1DPtr _h_fid_Plus;
Histo1DPtr _h_eee_Minus;
Histo1DPtr _h_mee_Minus;
Histo1DPtr _h_emm_Minus;
Histo1DPtr _h_mmm_Minus;
Histo1DPtr _h_fid_Minus;
Histo1DPtr _h_total;
Histo1DPtr _h_Njets;
//@}
double MZ_PDG = 91.1876;
double MW_PDG = 83.385;
double GammaZ_PDG = 2.4952;
double GammaW_PDG = 2.085;
};
// The hook for the plugin system
RIVET_DECLARE_PLUGIN(ATLAS_2016_I1469071);
}
|