ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/prepare_environment.py
(Generate patch)

Comparing UserCode/VHbb/python/prepare_environment.py (file contents):
Revision 1.2 by peller, Wed May 9 09:48:23 2012 UTC vs.
Revision 1.4 by peller, Thu May 10 16:16:05 2012 UTC

# Line 5 | Line 5 | from samplesclass import sample
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  
# Line 25 | Line 25 | samplenames0 =['WW','WZ','ZZ','TT','ST_s
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  
# Line 36 | Line 36 | samplenames1 =['Zudsg','Zbb','Zcc']
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  
# Line 46 | Line 46 | samplenames2 =['Zudsg_pt120','Zbb_pt120'
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  
# Line 68 | Line 68 | info = []
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines