3 |
|
from printcolor import printc |
4 |
|
|
5 |
|
|
6 |
< |
def copytree(pathIN,pathOUT,prefix,file,Aprefix,Acut): |
6 |
> |
def copytree(pathIN,pathOUT,prefix,newprefix,file,Aprefix,Acut): |
7 |
|
input = TFile.Open("%s/%s%s.root" %(pathIN,prefix,file),'read') |
8 |
< |
output = TFile.Open("%s/%s%s%s.root" %(pathOUT,prefix,Aprefix,file),'recreate') |
8 |
> |
output = TFile.Open("%s/%s%s%s.root" %(pathOUT,newprefix,Aprefix,file),'recreate') |
9 |
|
|
10 |
|
input.cd() |
11 |
|
obj = ROOT.TObject |
33 |
|
#CountWithPU.Scale(factor) |
34 |
|
#CountWithPU2011B.Scale(factor) |
35 |
|
input.Close() |
36 |
< |
output.Close() |
36 |
> |
output.Close() |