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) |
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)) |