5 |
|
import pickle |
6 |
|
|
7 |
|
|
8 |
< |
prefix='ZllH.May5Reg.' |
8 |
> |
prefix='ZllH.May8Reg.' |
9 |
|
|
10 |
< |
lumi=4700 |
10 |
> |
lumi=4980 |
11 |
|
|
12 |
< |
pathIN='/scratch/May05/' |
13 |
< |
pathOUT='/scratch/May05/env/' |
12 |
> |
pathIN='/scratch/May08/' |
13 |
> |
pathOUT='/scratch/May08/env/' |
14 |
|
|
15 |
|
weightexpression='((0.46502*PUweight+0.53498*PUweight2011B)*weightTrig)' |
16 |
|
|
17 |
< |
#this is only to speed it up, rwmove for final trees! |
18 |
< |
Precut='& V.pt > 50 & V.mass > 75. & V.mass < 105 & hJet_pt[0] > 20. & hJet_pt[1] > 20. & abs(hJet_eta[0]) < 2.4 & abs(hJet_eta[1]) < 2.4 & deltaPullAngleAK7 < 10.' |
17 |
> |
#this is only to speed it up, remove for final trees! |
18 |
> |
Precut='& V.pt > 50 & V.mass > 75. & V.mass < 105 & hJet_pt[0] > 20. & hJet_pt[1] > 20. & abs(hJet_eta[0]) < 2.4 & abs(hJet_eta[1]) < 2.4' |
19 |
|
|
20 |
|
|
21 |
|
|
25 |
|
sampletypes0 =['BKG','BKG','BKG','BKG','BKG','BKG','BKG','BKG','BKG','BKG','SIG','SIG','SIG','SIG','SIG'] |
26 |
|
samplesgroup0=['VV','VV','VV','TT','ST','ST','ST','ST','ST','ST','ZH','ZH','ZH','ZH','ZH'] |
27 |
|
xsecs0 = [42.9, 18.3, 5.9, 165, 3.19, 41.92, 7.87, 1.44, 22.65, 7.87, 0.4721*0.100974*0.745, 0.4107*0.100974*0.704, 0.3598*0.100974*0.648, 0.3158*0.100974*0.577, 0.2778*0.100974*0.493] |
28 |
< |
SF0=[1.0,1.0,1.0,1.03387,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0] |
28 |
> |
SF0=[1.0,1.0,1.0,1.03,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0] |
29 |
|
Aprefix0 = [''] |
30 |
|
cut0 = ['(Vtype == 1 || Vtype == 0) && EVENT.json && hbhe'] |
31 |
|
|
36 |
|
sampletypes1 =['BKG']*3 |
37 |
|
samplesgroup1=['DYlight','DYb','DYc'] |
38 |
|
xsecs1 = [3048]*3 |
39 |
< |
SF1=[1.26223,0.927624,1.22381] |
39 |
> |
SF1=[1.08,0.94,1.16] |
40 |
|
Aprefix1 = ['udsg_120_', 'b_120_','c_120_'] |
41 |
|
cut1 = ['(Vtype == 1 || Vtype == 0) & EVENT.json & hbhe & eventFlav != 5 & eventFlav != 4 & genZpt <= 120.','(Vtype == 1 || Vtype == 0) & EVENT.json & hbhe & eventFlav == 5 & genZpt <= 120.','(Vtype == 1 || Vtype == 0) & EVENT.json & hbhe & eventFlav == 4 & genZpt <= 120.'] |
42 |
|
|
46 |
|
sampletypes2 =['BKG']*3 |
47 |
|
samplesgroup2=['DYlight','DYb','DYc'] |
48 |
|
xsecs2 = [30]*3 |
49 |
< |
SF2=[1.26223,0.927624,1.22381] |
49 |
> |
SF2=[1.08,0.94,1.16] |
50 |
|
Aprefix2 = ['udsg_120_', 'b_120_','c_120_'] |
51 |
|
cut2 = ['(Vtype == 1 || Vtype == 0) & EVENT.json & hbhe & eventFlav != 5 & eventFlav != 4 & genZpt > 120.','(Vtype == 1 || Vtype == 0) & EVENT.json & hbhe & eventFlav == 5 & genZpt > 120.','(Vtype == 1 || Vtype == 0) & EVENT.json & hbhe & eventFlav == 4 & genZpt > 120.'] |
52 |
|
|
68 |
|
|
69 |
|
# i>1 because no WW sample!!! only temporary fix |
70 |
|
|
71 |
< |
for i in range(1,len(InFiles0)): |
71 |
> |
for i in range(0,len(InFiles0)): |
72 |
|
copytree(pathIN,pathOUT,prefix,InFiles0[i],Aprefix0[0],cut0[0]+Precut) |
73 |
|
info.append(sample(samplenames0[i],sampletypes0[i])) |
74 |
|
info[-1].path=pathOUT |