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

Comparing UserCode/VHbb/python/myutils/Ratio.py (file contents):
Revision 1.1 by peller, Wed Jan 16 16:35:41 2013 UTC vs.
Revision 1.3 by nmohr, Fri Jul 19 09:53:44 2013 UTC

# Line 27 | Line 27 | def renewHist(hist,reference,min,max):
27   def getRatio(hist,reference,min,max,yTitle="",maxUncertainty = 1000.000,restrict=True):
28      from ROOT import gROOT
29      theHist, theReference = renewHist(hist,reference,min,max)
30 <    ROOT.gSystem.Load('./Ratio_C.so')
30 >    ROOT.gSystem.Load('./myutils/Ratio_C.so')
31      from ROOT import coolRatio
32      thePlotter = coolRatio()
33      theRatio = thePlotter.make_rebinned_ratios(theHist,theReference,maxUncertainty,False,0)
# Line 36 | Line 36 | def getRatio(hist,reference,min,max,yTit
36      if restrict:
37          theRatio.SetMinimum(0.01)
38          theRatio.SetMaximum(2.49)
39 +        #theRatio.SetMinimum(0.35)
40 +        #theRatio.SetMaximum(1.8)
41      else:
42          theRatio.SetMinimum(int(theRatio.GetMinimum()))
43          theRatio.SetMaximum(int(theRatio.GetMaximum()*1.5))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines