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

Comparing UserCode/VHbb/python/StackMaker.py (file contents):
Revision 1.3 by peller, Fri Oct 19 15:47:19 2012 UTC vs.
Revision 1.4 by peller, Mon Oct 22 14:33:42 2012 UTC

# Line 11 | Line 11 | class StackMaker:
11          plotConfig.read('vhbbPlotDef.ini')
12          section='Plot:%s'%region
13          self.var = var
14 +        self.SignalRegion=SignalRegion
15          self.normalize = eval(config.get(section,'Normalize'))
16          self.log = eval(config.get(section,'log'))
17          if plotConfig.has_option('plotDef:%s'%var,'log') and not self.log:
# Line 164 | Line 165 | class StackMaker:
165              stackhists=allStack.GetHists()
166              for blabla in stackhists:
167                      if MC_integral != 0: blabla.Scale(stackscale)
168 <    
169 <        allMC=allStack.GetStack().Last().Clone()
168 >  
169 >        if self.SignalRegion:
170 >            allMC=allStack.GetStack().At(allStack.GetStack().GetLast()-1).Clone()
171 >        else:
172 >            allMC=allStack.GetStack().Last().Clone()
173  
174          allStack.SetTitle()
175          allStack.Draw("hist")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines