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

Comparing UserCode/VHbb/python/write_systematics.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:28 2012 UTC

# Line 20 | Line 20 | path=sys.argv[1]
20   infofile = open(path+'/samples.info','r')
21   info = pickle.load(infofile)
22   infofile.close()
23 < os.mkdir(path+'/sys')
23 > #os.mkdir(path+'/sys')
24  
25   for job in info:
26      if job.type != 'DATA':
# Line 34 | Line 34 | for job in info:
34          for key in ROOT.gDirectory.GetListOfKeys():
35              input.cd()
36              obj = key.ReadObj()
37 <            print obj.GetName()
37 >            #print obj.GetName()
38              if obj.GetName() == job.tree:
39                  continue
40              output.cd()
41 <            print key.GetName()
41 >            #print key.GetName()
42              obj.Write(key.GetName())
43  
44          tree = input.Get(job.tree)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines