-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunPlotter.C
More file actions
473 lines (379 loc) · 22.7 KB
/
runPlotter.C
File metadata and controls
473 lines (379 loc) · 22.7 KB
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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
#include "HistogramReader.h"
#include <fstream>
#include <iostream>
// Constants
//------------------------------------------------------------------------------
const Bool_t datadriven = false;
const Bool_t allplots = false;
const TString inputdir = "../rootfiles3ltigth/nominal/";
//const TString inputdir = "../rootfiles/nominal/";
const TString outputdir = "figures/";
const TString sl = "#font[12]{l}";
const TString sll = "#font[12]{ll}";
const TString sm = "E_{T}^{miss}";
enum {linY, logY};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// runPlotter
//
// option = "hist" --> all distributions normalized to the luminosity
// option = "nostack,hist" --> signal and top distributions normalized to one
//
// Draw(TString hname, Name of the histogram.
// TString xtitle = "", Title of the x-axis.
// Int_t ngroup = -1, Number of bins to be merged into one bin.
// Int_t precision = 0, Number of decimal digits.
// TString units = "NULL", Units of the histogram.
// Bool_t setlogy = false, Set it to true (false) for logarithmic (linear) scale.
// Bool_t moveoverflow = true, Set it to true to plot the events out of range.
// Float_t xmin = -999,
// Float_t xmax = -999,
// Float_t ymin = -999,
// Float_t ymax = -999);
//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void runPlotter(TString level,
TString option = "hist")
{
gInterpreter->ExecuteMacro("PaperStyle.C");
TString tok;
Ssiz_t from = 0;
TString analysis = (level.Tokenize(tok, from, "/")) ? tok : "NONE";
if (analysis.EqualTo("NONE")) return;
float lumi = 36.;
if (analysis.EqualTo("Shape")) lumi = lumi_fb_Run2016B;
// if (analysis.EqualTo("Stop")) lumi = lumi_fb_Full2016;
Bool_t scale = linY;
if (analysis.EqualTo("MonoH")) scale = logY;
if (analysis.EqualTo("Stop")) scale = linY;
if (analysis.EqualTo("Top")) scale = logY;
int firstchannel = (analysis.EqualTo("WZ") || analysis.EqualTo("Stop")) ? eee : ee;
int lastchannel = (analysis.EqualTo("WZ") || analysis.EqualTo("Stop")) ? lll : ll;
HistogramReader plotter(inputdir + analysis, outputdir);
plotter.SetStackOption(option);
plotter.SetPublicStyle(false);
plotter.SetSavePdf (false);
if (option.Contains("nostack"))
{
plotter.SetDrawRatio(false);
}
else
{
plotter.SetLuminosity(lumi);
plotter.SetDrawRatio (true);
}
// Get the data
//----------------------------------------------------------------------------
//plotter.AddData("09_Data", "data", color_Data);
plotter.AddData("01_Data", "data", color_Data);
// Add processes
//----------------------------------------------------------------------------
if (analysis.EqualTo("WZ"))
{
plotter.AddProcess("02_WZTo3LNu", "WZ", color_WZTo3LNu);
plotter.AddProcess("06_WW", "WW", color_WW);
plotter.AddProcess("11_Wg", "W#gamma", color_Wg);
plotter.AddProcess("15_WgStat", "W#gamma*", color_WgStar);
plotter.AddProcess("03_VZ", "VZ", color_VZ);
plotter.AddProcess("09_TTV", "ttV", color_TTV);
plotter.AddProcess("13_VVV", "VVV", color_VVV);
if (datadriven)
{
// -999 is needed to not scale by luminosity
plotter.AddProcess("00_Fakes", "non-prompt", color_Fakes, roc_background, -999);
plotter.AddProcess("12_Zg", "Z#gamma", color_Zg);
}
else
{
plotter.AddProcess("07_ZJets", "Z+jets", color_ZJets);
plotter.AddProcess("04_TTTo2L2Nu", "tt", color_TTTo2L2Nu);
plotter.AddProcess("05_ST", "tW", color_ST);
}
}
else
{
/*plotter.AddProcess("01_ZJets", "Z+jets", color_ZJets);
plotter.AddProcess("02_WWW", "WWW", color_WgStar);
plotter.AddProcess("03_WWZ", "WWZ", color_Wg);
plotter.AddProcess("04_WWG", "WWG", color_Wg +3);
plotter.AddProcess("05_ZZ", "ZZ", color_VZ);
plotter.AddProcess("06_WZ", "WZ", color_WZTo3LNu);
plotter.AddProcess("07_TTW", "TTW", color_TTV);
plotter.AddProcess("08_TTZ", "TTZ", color_TTTo2L2Nu);*/
plotter.AddProcess("13_VVV", "VVV", color_VVV);
plotter.AddProcess("03_VZ", "VZ", color_VZ);
plotter.AddProcess("09_TTW", "ttW", color_TTV);
plotter.AddProcess("10_TTZ", "ttZ", color_TTZ);
plotter.AddProcess("11_HWW", "HWW", color_HWW);
plotter.AddProcess("02_WZTo3LNu", "WZ", color_WZTo3LNu);
plotter.AddProcess("06_WW", "WW", color_WW, roc_signal);
plotter.AddProcess("05_ST", "tW", color_ST);
plotter.AddProcess("07_ZJets", "Z+jets", color_ZJets);
plotter.AddProcess("04_TTTo2L2Nu", "tt", color_TTTo2L2Nu);
if (datadriven)
{
// -999 is needed to not scale by luminosity
plotter.AddProcess("00_Fakes", "non-prompt", color_Fakes, roc_background, -999);
}
else
{
// plotter.AddProcess("08_WJets", "W+jets", color_WJets); // NOT YET AVAILABLE
}
}
/*// Add signals
//----------------------------------------------------------------------------
if (analysis.EqualTo("MonoH"))
{
plotter.AddSignal("monoH_2HDM_MZp-600_MA0-400", "m_{Z'} 600", color_Signal-4);
plotter.AddSignal("monoH_2HDM_MZp-800_MA0-400", "m_{Z'} 800", color_Signal-3);
plotter.AddSignal("monoH_2HDM_MZp-1200_MA0-400", "m_{Z'} 1200", color_Signal-1);
plotter.AddSignal("monoH_2HDM_MZp-1700_MA0-400", "m_{Z'} 1700", color_Signal+1);
plotter.AddSignal("monoH_2HDM_MZp-2000_MA0-400", "m_{Z'} 2000", color_Signal+2);
plotter.AddSignal("monoH_2HDM_MZp-2500_MA0-400", "m_{Z'} 2500", color_Signal+3);
}
if (analysis.EqualTo("TTDM"))
plotter.AddSignal("ttDM0001scalar00010", "m_{#chi}1 m_{S}10 x36", color_Signal, roc_background, 36.);
plotter.AddSignal("ttDM0001scalar00500", "m_{#chi}1 m_{S}500 x55203", color_Signal+2, roc_background, 55203.);
}
if (analysis.EqualTo("Stop"))
{
plotter.AddSignal("T2tt_mStop-150to250_Sm150_Xm25", "m_{ref}150-25", color_Signal);
plotter.AddSignal("T2tt_mStop-250to350_Sm275_Xm150", "m_{ref}275-150", color_Signal+2);
}
// Draw events by cut
//----------------------------------------------------------------------------
plotter.SetDrawYield(false);
gSystem->mkdir(outputdir + level, kTRUE);
for (int i=firstchannel; i<=lastchannel; i++)
{
plotter.LoopEventsByCut(analysis, "h_counterLum_" + schannel[i]);
TString title = (i < lastchannel) ? lchannel[i] : "inclusive";
plotter.SetTitle(title);
plotter.Draw(analysis + "/h_counterLum_" + schannel[i] + "_evolution", "", -1, 0, "NULL", logY, false);
}
// Draw events by channel
//----------------------------------------------------------------------------
plotter.SetDrawYield(false);
for (int j=0; j<=njetbin; j++)
{
if (!analysis.EqualTo("Control") &&
!analysis.EqualTo("Stop") &&
!analysis.EqualTo("Top") &&
!analysis.EqualTo("WW") &&
j != njetbin) continue;
TString jetbin = (j < njetbin) ? Form("/%djet", j) : "";
gSystem->mkdir(outputdir + level + jetbin, kTRUE);
plotter.LoopEventsByChannel(level + jetbin);
plotter.Draw(level + jetbin + "/h_counterLum_evolution", "", -1, 0, "NULL", scale, false);
}
*/
// Draw distributions
//----------------------------------------------------------------------------
if (!option.Contains("nostack")) plotter.SetDrawYield(true);
float m2l_xmin = (level.Contains("WZ")) ? 60 : 0; // [GeV]
float m2l_xmax = (level.Contains("WZ")) ? 120 : 300; // [GeV]
int m2l_ngroup = (level.Contains("WZ")) ? 2 : 5;
for (int j=0; j<=njetbin; j++)
{
if (!analysis.EqualTo("Control") &&
//!analysis.EqualTo("Stop") &&
!analysis.EqualTo("Top") &&
!analysis.EqualTo("WW") &&
j != njetbin) continue;
TString jetbin = (j < njetbin) ? Form("/%djet", j) : "";
gSystem->mkdir(outputdir + level + jetbin, kTRUE);
TString prefix = level + jetbin + "/h_";
for (int i=firstchannel; i<=lastchannel; i++)
{
TString suffix = "_" + schannel[i];
TString title = (i < lastchannel) ? lchannel[i] : "inclusive";
plotter.SetTitle(title);
// TTZ study histograms
//-------------------------------------------------------------------
// TH1F* myhisto = prefix + "m2l_TTZ" + suffix;
// float nbins = myhisto -> GetNbinsX();
// std::cout << prefix + "m2l_TTZ" + suffix << " " << nbins << std::endl;
plotter.Draw(prefix + "m2l_TTZexe" + suffix, "m2l", -1, 0, "GeV", linY,true, 80,100);
plotter.Draw(prefix + "m2l_TTZ" + suffix, "m2l", -1, 0, "GeV", linY, true, 80,100);
// plotter.Draw(prefix + "metPfType1_TTZexe" + suffix, "MET", -1, 0, "GeV", scale);
// plotter.Draw(prefix + "metPfType1_TTZ" + suffix, "MET", -1, 0, "GeV", scale);
// plotter.Draw(prefix + "MT2ll_TTZexe" + suffix, "MT2ll", -1, 0, "GeV", scale);
// plotter.Draw(prefix + "MT2ll_TTZ" + suffix, "MT2ll", -1, 0, "GeV", scale);
/*
// Common histograms
//--------------------------------------------------------------------
plotter.Draw(prefix + "m2l" + suffix, "m_{" + sll + "}", m2l_ngroup, 0, "GeV", logY, true, m2l_xmin, m2l_xmax);
plotter.Draw(prefix + "m2l" + suffix, "m_{" + sll + "}", m2l_ngroup, 0, "GeV", linY, true, m2l_xmin, m2l_xmax);
plotter.Draw(prefix + "njet" + suffix, "number of 30 GeV jets", -1, 0, "NULL", scale);
plotter.Draw(prefix + "nbjet20cmvav2l" + suffix, "number of 20 GeV cmvav2l b-jets", -1, 0, "NULL", scale);
plotter.Draw(prefix + "nbjet30csvv2m" + suffix, "number of 30 GeV csvv2m b-jets", -1, 0, "NULL", scale);
plotter.Draw(prefix + "dphillmet" + suffix, "#Delta#phi(" +sll + "," + sm + ")", 5, 2, "rad", scale);
plotter.Draw(prefix + "metPfType1Phi" + suffix, sm + " #phi", 5, 2, "rad", scale);
plotter.Draw(prefix + "metPfType1" + suffix, sm, 10, 0, "GeV", scale, true, 0, 200);
plotter.Draw(prefix + "nvtx" + suffix, "number of vertices", -1, 0, "NULL", scale, true, 0, 30);
plotter.Draw(prefix + "lep1pt" + suffix, "leading lepton p_{T}", 5, 0, "GeV", scale, true, 0, 150);
plotter.Draw(prefix + "lep2pt" + suffix, "trailing lepton p_{T}", 5, 0, "GeV", scale, true, 0, 150);
plotter.Draw(prefix + "lep1eta" + suffix, "leading lepton #eta", -1, 1, "NULL", scale);
plotter.Draw(prefix + "lep2eta" + suffix, "trailing lepton #eta", -1, 1, "NULL", scale);
plotter.Draw(prefix + "lep1phi" + suffix, "leading lepton #phi", 5, 2, "rad", scale);
plotter.Draw(prefix + "lep2phi" + suffix, "trailing lepton #phi", 5, 2, "rad", scale);
plotter.Draw(prefix + "jet1eta" + suffix, "leading jet #eta", -1, 1, "NULL", scale, false);
plotter.Draw(prefix + "jet2eta" + suffix, "trailing jet #eta", -1, 1, "NULL", scale, false);
plotter.Draw(prefix + "jet1phi" + suffix, "leading jet #phi", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "jet2phi" + suffix, "trailing jet #phi", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "jet1pt" + suffix, "leading jet p_{T}", 5, 0, "GeV", scale, true, 0, 400);
plotter.Draw(prefix + "jet2pt" + suffix, "trailing jet p_{T}", 5, 0, "GeV", scale, true, 0, 400);
plotter.Draw(prefix + "dphill" + suffix, "#Delta#phi(lep1,lep2)", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "detall" + suffix, "#Delta#eta(lep1,lep2)", 5, 2, "rad", scale, true, 0, 5);
plotter.Draw(prefix + "topReco" + suffix, "number of tt reco solutions", -1, 0, "NULL", scale);
// ROC
//--------------------------------------------------------------------
// S / #sqrt{B}
// S / #sqrt{S+B}
// S / B
// Punzi Eq.6 (https://arxiv.org/pdf/physics/0308063v2.pdf)
// Punzi Eq.7 (https://arxiv.org/pdf/physics/0308063v2.pdf)
plotter.Roc(prefix + "ht" + suffix, "H_{T}", 1000, "GeV", 0, 1000, "Punzi Eq.6");
plotter.Roc(prefix + "pt2l" + suffix, "p_{T}^{ll}", 1000, "GeV", 0, 1000, "Punzi Eq.6");
plotter.Roc(prefix + "mth" + suffix, "m_{T}^{ll}", 1000, "GeV", 0, 1000, "Punzi Eq.6");
plotter.Roc(prefix + "mtw1" + suffix, "m_{T}^{W1}", 1000, "GeV", 0, 1000, "Punzi Eq.6");
plotter.Roc(prefix + "mtw2" + suffix, "m_{T}^{W2}", 1000, "GeV", 0, 1000, "Punzi Eq.6");
plotter.Roc(prefix + "mt2ll" + suffix, "m_{T2}^{ll}", 1000, "GeV", 0, 1000, "Punzi Eq.6");
plotter.Roc(prefix + "m2l" + suffix, "m_{ll}", 1000, "GeV", 0, 1000, "Punzi Eq.6");
plotter.Roc(prefix + "drll" + suffix, "#DeltaR_{ll}", 50, "rad", 0, 5, "Punzi Eq.6");
if (!allplots) continue;
plotter.Draw(prefix + "dyll" + suffix, "lepton #Delta#eta", -1, 3, "NULL", scale);
plotter.Draw(prefix + "dphimetjet" + suffix, "min #Delta#phi(jet," + sm + ")", 5, 2, "rad", scale);
plotter.Draw(prefix + "dphimetptbll" + suffix, "#Delta#phi(llmet," + sm + ")", 5, 2, "rad", scale);
plotter.Draw(prefix + "mllbb" + suffix, "m_{" + sll + "bb}", 10, 0, "GeV", scale, false, 0, 600);
plotter.Draw(prefix + "meff" + suffix, "m_{eff}", 10, 0, "GeV", scale, false, 0, 600);
plotter.Draw(prefix + "ptbll" + suffix, "p_{T}^{llmet}", 10, 0, "GeV", scale, false, 0, 600);
plotter.Draw(prefix + "mt2ll" + suffix, "M_{T2}(" + sll + ")", 10, 0, "GeV", scale, false, 0, 600);
plotter.Draw(prefix + "mt2bb" + suffix, "M_{T2}(bb)" , 10, 0, "GeV", scale, false, 0, 600);
plotter.Draw(prefix + "mt2lblb" + suffix, "M_{T2}(" + sl + "b" + sl + "b)", 10, 0, "GeV", scale, false, 0, 600);
plotter.Draw(prefix + "dphijet1met" + suffix, "#Delta#phi(jet1,E_{T}^{miss})", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphijet2met" + suffix, "#Delta#phi(jet2,E_{T}^{miss})", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphijj" + suffix, "#Delta#phi(jet1,jet2)", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphijjmet" + suffix, "#Delta#phi(jj,E_{T}^{miss})", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphilep1jet1" + suffix, "#Delta#phi(lep1,jet1)", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphilep1jet2" + suffix, "#Delta#phi(lep1,jet2)", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphilep2jet1" + suffix, "#Delta#phi(lep2,jet1)", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphilep2jet2" + suffix, "#Delta#phi(lep2,jet2)", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphillstar" + suffix, "#Delta#phi*(lep1,lep2)", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphilmet1" + suffix, "#Delta#phi(lep1,E_{T}^{miss})", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "dphilmet2" + suffix, "#Delta#phi(lep2,E_{T}^{miss})", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "metTtrkPhi" + suffix, "track E_{T}^{miss} #phi", 5, 2, "rad", scale, false);
plotter.Draw(prefix + "drll" + suffix, "#DeltaR(lep1,lep2)", 5, 1, "NULL", scale, false);
plotter.Draw(prefix + "jet1mass" + suffix, "leading jet mass", -1, 0, "GeV", scale, true, 0, 50);
plotter.Draw(prefix + "jet2mass" + suffix, "trailing jet mass", -1, 0, "GeV", scale, true, 0, 50);
plotter.Draw(prefix + "mc" + suffix, "m_{c}", 10, 0, "GeV", scale, true, 0, 400);
plotter.Draw(prefix + "metTtrk" + suffix, "track E_{T}^{miss}", 10, 0, "GeV", scale, true, 0, 400);
plotter.Draw(prefix + "mpmet" + suffix, "min projected E_{T}^{miss}", 10, 0, "GeV", logY, true, 0, 200);
plotter.Draw(prefix + "mth" + suffix, "m_{T}^{H}", 10, 0, "GeV", scale, true, 0, 400);
plotter.Draw(prefix + "mtw1" + suffix, "m_{T}^{W,1}", 10, 0, "GeV", scale, true, 0, 400);
plotter.Draw(prefix + "mtw2" + suffix, "m_{T}^{W,2}", 10, 0, "GeV", scale, true, 0, 400);
plotter.Draw(prefix + "ht" + suffix, "H_{T}", 20, 0, "GeV", scale, true, 0, 1500);
plotter.Draw(prefix + "htjets" + suffix, "#sum_{jet} p_{T}", 20, 0, "GeV", scale, true, 0, 1500);
plotter.Draw(prefix + "htnojets" + suffix, "p_{T}^{lep1} + p_{T}^{lep2} + MET", 20, 0, "GeV", scale, true, 0, 1500);
plotter.Draw(prefix + "pt2l" + suffix, "p_{T}^{#font[12]{ll}}", 10, 0, "GeV", scale, true, 0, 300);
plotter.Draw(prefix + "ptww" + suffix, "p_{T}^{WW}", 10, 0, "GeV", scale, true, 0, 600);
plotter.Draw(prefix + "sumjpt12" + suffix, "p_{T}^{jet1} + p_{T}^{jet2}", 10, 0, "GeV", scale, true, 0, 600);
plotter.Draw(prefix + "sumpt12" + suffix, "p_{T}^{lep1} + p_{T}^{lep2}", 10, 0, "GeV", scale, true, 0, 600);
// WW and MonoH histograms
//--------------------------------------------------------------------
if (analysis.EqualTo("WW") || analysis.EqualTo("MonoH"))
{
plotter.Draw(prefix + "fullpmet" + suffix, "projected E_{T}^{miss}", 10, 0, "GeV", scale, false, 0, 100);
plotter.Draw(prefix + "trkpmet" + suffix, "projected track E_{T}^{miss}", 2, 0, "GeV", scale, false, 0, 100);
plotter.Draw(prefix + "mllstar" + suffix, "m2l^{*}", 10, 0, "GeV", scale, false, 0, 300);
plotter.Draw(prefix + "metPuppi" + suffix, "PUPPI E_{T}^{miss}", 10, 0, "GeV", scale, true, 0, 400);
}
if (analysis.EqualTo("MonoH"))
{
plotter.Draw(prefix + "deltarl1met" + suffix, "#DeltaR(lep1,E_{T}^{miss})", 2, 1, "NULL", scale, false, 0, 4);
plotter.Draw(prefix + "deltarl2met" + suffix, "#DeltaR(lep2,E_{T}^{miss})", 2, 1, "NULL", scale, false, 0, 4);
plotter.Draw(prefix + "deltarllmet" + suffix, "#DeltaR(ll,E_{T}^{miss})", 2, 1, "NULL", scale, false, 0, 4);
plotter.Draw(prefix + "deltarjet1met" + suffix, "#DeltaR(jet1,E_{T}^{miss})", 5, 2, "NULL", scale, false);
plotter.Draw(prefix + "deltarjet2met" + suffix, "#DeltaR(jet2,E_{T}^{miss})", 5, 2, "NULL", scale, false);
plotter.Draw(prefix + "deltarjj" + suffix, "#DeltaR(jet1,jet2)", 5, 2, "NULL", scale, false);
plotter.Draw(prefix + "deltarjjmet" + suffix, "#DeltaR(jj,E_{T}^{miss})", 5, 2, "NULL", scale, false);
plotter.Draw(prefix + "deltarlep1jet1" + suffix, "#DeltaR(lep1,jet1)", 5, 2, "NULL", scale, false);
plotter.Draw(prefix + "deltarlep1jet2" + suffix, "#DeltaR(lep1,jet2)", 5, 2, "NULL", scale, false);
plotter.Draw(prefix + "deltarlep2jet1" + suffix, "#DeltaR(lep2,jet1)", 5, 2, "NULL", scale, false);
plotter.Draw(prefix + "deltarlep2jet2" + suffix, "#DeltaR(lep2,jet2)", 5, 2, "NULL", scale, false);
}
// WZ histograms
//--------------------------------------------------------------------
if (analysis.EqualTo("WZ"))
{
plotter.Draw(prefix + "m3l" + suffix, "m_{#font[12]{3l}}", 10, 0, "GeV", scale, true, 60, 360);
plotter.Draw(prefix + "mtw" + suffix, "W transverse mass", 10, 0, "GeV", scale, true, 0, 150);
plotter.Draw(prefix + "zl1pt" + suffix, "Z leading lepton p_{T}", 10, 0, "GeV", scale, true, 0, 150);
plotter.Draw(prefix + "zl2pt" + suffix, "Z trailing lepton p_{T}", 10, 0, "GeV", scale, true, 0, 150);
plotter.Draw(prefix + "wlpt" + suffix, "W lepton p_{T}", 10, 0, "GeV", scale, true, 0, 150);
plotter.Draw(prefix + "wlzldeltar" + suffix, "min #DeltaR(W lepton, Z leptons)", 5, 1, "NULL", scale);
}
*/ }
}
// Cross section
//----------------------------------------------------------------------------
//
// 1. How to extract the total number of generated events from the latino trees:
//
// root -l eos/cms/store/group/phys_higgs/cmshww/amassiro/HWW12fb_v2/07Jun2016_spring16_mAODv2_12pXfbm1/MCl2loose__hadd__bSFL2pTEff__l2tight/latino_WWTo2L2Nu.root
// mcWeightPos->GetEntries() - mcWeightNeg->GetEntries()
// 1.96718e+06
//
//
// 2. The qqWW and ggWW exclusive leptonic cross sections at 13 TeV (in pb) have been taken from:
//
// https://github.com/latinos/LatinoTrees/blob/master/AnalysisStep/python/samplesCrossSections.py
//
// samples['WWTo2L2Nu'] .extend( ['xsec=12.178', 'kfact=1.000', 'ref=E'] )
// samples['GluGluWWTo2L2Nu_MCFM'].extend( ['xsec=0.5905', 'kfact=1.000', 'ref=E'] )
//
//
// 3. Some theoretical cross sections can be found at the following paper:
//
// Vector boson pair production at the LHC
// https://arxiv.org/pdf/1105.0020v1.pdf
//
//----------------------------------------------------------------------------
if (analysis.EqualTo("Control") && level.Contains("WW") && 0) // NOT YET AVAILABLE
{
printf("\n Cross section\n");
printf("---------------\n\n");
for (int i=firstchannel; i<=lastchannel; i++)
plotter.CrossSection(level,
schannel[i],
"WW",
WW2lnu,
"WWTo2L2Nu", 12.1780, 1967180,
"GluGluWWTo2L2Nu_MCFM", 0.5905, 481600);
}
// Copy index.php in every directory
//----------------------------------------------------------------------------
gSystem->Exec("for dir in $(find ./ -type d); do cp -n ../index.php $dir/; done");
gSystem->Exec("rm -f index.php");
}
//------------------------------------------------------------------------------
//
// main
//
//------------------------------------------------------------------------------
# ifndef __CINT__
int main(int argc, char ** argv)
{
if (argc < 2) {
printf("\n rm -rf %s\n\n", outputdir.Data());
for (int i=0; i<ncut; i++) printf(" ./runPlotter %s\n", scut[i].Data());
printf("\n");
exit(0);
}
if (argc == 2)
runPlotter(argv[1]);
else
runPlotter(argv[1], argv[2]);
return 0;
}
# endif