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

Comparing UserCode/VHbb/python/HistoMaker.py (file contents):
Revision 1.8 by peller, Fri Oct 12 09:09:01 2012 UTC vs.
Revision 1.10 by peller, Tue Oct 23 16:39:55 2012 UTC

# Line 77 | Line 77 | class HistoMaker:
77          Tree = input.Get(job.tree)
78          output.cd()
79          CuttedTree=Tree.CopyTree(treeCut)
80 <    
80 >        input.Close()
81 >        del input
82          # get all Histos at once
83          weightF=self.config.get('Weights',self.which_weightF)
84          for options in self.optionsList:
# Line 109 | Line 110 | class HistoMaker:
110                  if options[11] == 'blind':
111                      output.cd()
112                      if treeVar == 'H.mass':
113 <                        CuttedTree.Draw('%s>>%s(%s,%s,%s)' %(treeVar,name,nBins,xMin,xMax),treeVar+'<80. || '+treeVar + '>150.' , "goff,e")
113 >                        CuttedTree.Draw('%s>>%s(%s,%s,%s)' %(treeVar,name,nBins,xMin,xMax),treeVar+'<90. || '+treeVar + '>150.' , "goff,e")
114                      else:
115                          CuttedTree.Draw('%s>>%s(%s,%s,%s)' %(treeVar,name,nBins,xMin,xMax),treeVar+'<0', "goff,e")
116  
# Line 144 | Line 145 | class HistoMaker:
145                  hTree.SetBinError(1,uFlowErr)
146                  hTree.SetBinError(hTree.GetNbinsX(),oFlowErr)
147              hTree.SetDirectory(0)
147            input.Close()
148              hTreeList.append(hTree)
149              groupList.append(group)
150 <            
150 >        
151 >        output.Close()
152 >        del output
153          return hTreeList, groupList
154          
155  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines