3 |
|
from printcolor import printc |
4 |
|
from samplesclass import sample |
5 |
|
import pickle |
6 |
+ |
import sys |
7 |
|
|
8 |
< |
|
8 |
< |
prefix='ZllH.May8Reg.' |
8 |
> |
prefix='ZllH.May23.' |
9 |
|
|
10 |
|
lumi=4980 |
11 |
|
|
12 |
< |
pathIN='/scratch/May08/' |
13 |
< |
pathOUT='/scratch/May08/env/' |
12 |
> |
#pathIN='/scratch/May08/' |
13 |
> |
#pathOUT='/scratch/May08/env/' |
14 |
> |
|
15 |
> |
pathIN=sys.argv[1] |
16 |
> |
pathOUT=sys.argv[2] |
17 |
|
|
18 |
|
weightexpression='((0.46502*PUweight+0.53498*PUweight2011B)*weightTrig)' |
19 |
|
|
72 |
|
# i>1 because no WW sample!!! only temporary fix |
73 |
|
|
74 |
|
for i in range(0,len(InFiles0)): |
75 |
< |
copytree(pathIN,pathOUT,prefix,InFiles0[i],Aprefix0[0],cut0[0]+Precut) |
75 |
> |
#copytree(pathIN,pathOUT,prefix,InFiles0[i],Aprefix0[0],cut0[0]+Precut) |
76 |
|
info.append(sample(samplenames0[i],sampletypes0[i])) |
77 |
|
info[-1].path=pathOUT |
78 |
|
info[-1].identifier=Aprefix0[0]+InFiles0[i] |
85 |
|
info[-1].addtreecut(cut0[0]) |
86 |
|
|
87 |
|
for i in range(3): |
88 |
< |
copytree(pathIN,pathOUT,prefix,InFiles1[i],Aprefix1[i],cut1[i]+Precut) |
88 |
> |
#copytree(pathIN,pathOUT,prefix,InFiles1[i],Aprefix1[i],cut1[i]+Precut) |
89 |
|
info.append(sample(samplenames1[i],sampletypes1[i])) |
90 |
|
info[-1].path=pathOUT |
91 |
|
info[-1].identifier=Aprefix1[i]+InFiles1[i] |
98 |
|
info[-1].addtreecut(cut1[i]) |
99 |
|
|
100 |
|
for i in range(3): |
101 |
< |
copytree(pathIN,pathOUT,prefix,InFiles2[i],Aprefix2[i],cut2[i]+Precut) |
101 |
> |
#copytree(pathIN,pathOUT,prefix,InFiles2[i],Aprefix2[i],cut2[i]+Precut) |
102 |
|
info.append(sample(samplenames2[i],sampletypes2[i])) |
103 |
|
info[-1].path=pathOUT |
104 |
|
info[-1].identifier=Aprefix2[i]+InFiles2[i] |