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.1 by peller, Tue May 8 10:37:17 2012 UTC vs.
Revision 1.2 by peller, Wed May 9 15:25:27 2012 UTC

# Line 12 | Line 12 | def copytree(pathIN,pathOUT,prefix,file,
12      for key in ROOT.gDirectory.GetListOfKeys():
13          input.cd()
14          obj = key.ReadObj()
15 <        print obj.GetName()
15 >        #print obj.GetName()
16          if obj.GetName() == 'tree':
17              continue
18          output.cd()
19 <        print key.GetName()
19 >        #print key.GetName()
20          obj.Write(key.GetName())
21  
22      inputTree = input.Get("tree")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines