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

Comparing UserCode/VHbb/python/copytree.py (file contents):
Revision 1.3 by peller, Thu May 10 16:16:05 2012 UTC vs.
Revision 1.4 by nmohr, Tue Jun 19 22:18:02 2012 UTC

# Line 3 | Line 3 | from ROOT import TFile
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
# Line 33 | Line 33 | def copytree(pathIN,pathOUT,prefix,file,
33      #CountWithPU.Scale(factor)
34      #CountWithPU2011B.Scale(factor)
35      input.Close()
36 <    output.Close()
36 >    output.Close()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines