173 def drawRatioPad(self,frame,hmin,hmax):
174 ROOT.gROOT.ProcessLine(
".L ratioPlot.C+")
175 axisTitle = frame.GetXaxis().GetTitle()
176 frame.GetXaxis().SetTitle(
'')
177 frame.GetXaxis().SetLabelSize(0.)
178 frame.GetYaxis().SetTitleOffset(1.0)
179 canvas = ROOT.gPad.GetCanvas()
181 ratioPad = self.protect( ROOT.TPad(
"ratioPad",
"ratioPad",0.,0.,1.,0.3) )
182 ratioPad.SetTopMargin(0.)
183 ratioPad.SetBottomMargin(0.3)
186 dataHist = frame.getObject(0)
187 fitCurve = frame.getObject(1)
191 ratio = ROOT.ratioPlot(dataHist,fitCurve)
194 ratio.GetXaxis().SetLimits(hmin,hmax)
196 size = scale*options.lsize
197 ratio.GetXaxis().SetLabelSize(size)
198 ratio.GetXaxis().SetTitle(axisTitle)
199 ratio.GetXaxis().SetTitleSize(size)
200 ratio.GetXaxis().SetTitleOffset(1.)
201 ratio.GetYaxis().SetRangeUser(0.3,1.7)
202 ratio.GetYaxis().SetLabelSize(size)
203 ratio.GetYaxis().SetTitle(
'Data / fit')
205 ratio.GetYaxis().SetTitleSize(size)
206 ratio.GetYaxis().SetTitleOffset(1.0/scale)
207 ratio.GetYaxis().SetNdivisions(504)
208 ratio.SetMarkerSize(0.7)
209 line = self.protect( ROOT.TLine(hmin,1,hmax,1) )