32 """ This function returns the ratio of two ROOT histograms """
33 assert len(inputs) == 1
34 assert len(inputs[0][1]) == 3
37 cl.Divide(inputs[0][1][1])
39 label = inputs[0][0][
'thr']
41 hnorm = inputs[0][1][2].Clone()
42 n0 = hnorm.GetNbinsX()
43 fbin = hnorm.GetXaxis().FindBin(label)
45 if fbin>=n0
or fbin<=0:
48 thenorm = hnorm.GetBinContent(fbin)
49 cl.SetEntries(thenorm)
51 if not doPercentage
or thenorm==0:
54 cl.Scale(100.0/thenorm)
74 """ This function returns the ratio of two ROOT histograms """
75 assert len(inputs) == 1
76 assert len(inputs[0][1]) == 2
81 if titleToReplace!=
"":
83 tit = tit.replace(titleToReplace,replaceTitWith)
86 nCells = cl.GetNcells()
87 assert(nCells==inputs[0][1][1].GetNcells())
89 cppyy.gbl.binbybinDiv(nCells,cl,inputs[0][1][0],inputs[0][1][1])