#pdfHist.Print() #pdfHist.Scale(nexp/pdfHist.Integral(), 'width') #pdfHist.Print() #print 'nexp:', nexp #dataHist.Draw() #pdfHist.Draw('same') #gPad.Update() #assert(False) mf = theFitter.stackedPlot() mf.SetName("Mjj_Stacked") ## sf = theFitter.residualPlot(mf, "h_background", "dibosonPdf", False) pf = theFitter.residualPlot(mf, "h_total", "", True) pf.SetName("Mjj_Pull") ## lf = theFitter.stackedPlot(True) l = TLatex() l.SetNDC() l.SetTextSize(0.035) l.SetTextFont(42) cs = TCanvas("cs", "stacked") mf.Draw() l.DrawLatex(0.22, 0.85, '#chi^{{2}}/dof = {0:0.3f}/{1}'.format(chi2, ndf) ) pyroot_logon.cmsPrelim(cs, fitterPars.intLumi/1000)