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

Comparing UserCode/VHbb/python/evaluateMVA.py (file contents):
Revision 1.2 by peller, Wed May 9 09:48:23 2012 UTC vs.
Revision 1.3 by peller, Wed May 9 15:25:27 2012 UTC

# Line 115 | Line 115 | infofile.close()
115   for job in Ainfo[start:stop]:
116      #get trees:
117      input = TFile.Open(job.getpath(),'read')
118 <    outfile = TFile.Open(job.path+'/MVAout2/'+job.prefix+job.identifier+'.root','recreate')
118 >    outfile = TFile.Open(job.path+'/MVAout/'+job.prefix+job.identifier+'.root','recreate')
119      input.cd()
120      obj = ROOT.TObject
121      for key in ROOT.gDirectory.GetListOfKeys():
122          input.cd()
123          obj = key.ReadObj()
124 <        print obj.GetName()
124 >        #print obj.GetName()
125          if obj.GetName() == job.tree:
126              continue
127          outfile.cd()
128 <        print key.GetName()
128 >        #print key.GetName()
129          obj.Write(key.GetName())
130      tree = input.Get(job.tree)
131      nEntries = tree.GetEntries()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines