assert(False) #assert(False) mass.setRange('signal', fitterPars.minTrunc, fitterPars.maxTrunc) #yields = theFitter.makeFitter().coefList() finalPars = fr.floatParsFinal() yields = RooArgList(finalPars) yields.add(fr.constPars()) sigInt = theFitter.makeFitter().createIntegral(iset,iset,'signal') sigFullInt = theFitter.makeFitter().createIntegral(iset,iset) print "allBkg","sigInt",sigInt.getVal(),"fullInt",sigFullInt.getVal(),\ "ratio",sigInt.getVal()/sigFullInt.getVal() dibosonInt = theFitter.makeDibosonPdf().createIntegral(iset,iset,'signal') dibosonFullInt = theFitter.makeDibosonPdf().createIntegral(iset,iset) WpJPdf = theFitter.makeWpJPdf() WpJInt = WpJPdf.createIntegral(iset, iset, 'signal') WpJFullInt = WpJPdf.createIntegral(iset, iset) #WpJPdf.Print("v") print "WpJ","sigInt",WpJInt.getVal(),"fullInt",WpJFullInt.getVal(),\ "ratio",WpJInt.getVal()/WpJFullInt.getVal() ttbarInt = theFitter.makettbarPdf().createIntegral(iset, iset, 'signal') ttbarFullInt = theFitter.makettbarPdf().createIntegral(iset, iset) SingleTopInt = theFitter.makeSingleTopPdf().createIntegral(iset, iset, 'signal') SingleTopFullInt = theFitter.makeSingleTopPdf().createIntegral(iset, iset) QCDInt = theFitter.makeQCDPdf().createIntegral(iset, iset, 'signal') QCDFullInt = theFitter.makeQCDPdf().createIntegral(iset, iset) ZpJInt = theFitter.makeZpJPdf().createIntegral(iset, iset, 'signal') ZpJFullInt = theFitter.makeZpJPdf().createIntegral(iset, iset) print "ZpJ","sigInt",ZpJInt.getVal(),"fullInt",ZpJFullInt.getVal(),\ "ratio",ZpJInt.getVal()/ZpJFullInt.getVal()
if (opts.Err >= 0) and (opts.Err < 1): opts.Err = sqrt(sig2)*1.37 (plots, cans) = plot2BodyDist(theFitter, fitterPars, chi2, ndf, opts.Err, opts.NP) h_total = plots[0].getCurve('h_total') theData = plots[0].getHist('theData') mass.setRange('signal', fitterPars.minTrunc, fitterPars.maxTrunc) sigInt = theFitter.makeFitter().createIntegral(iset,iset,'signal') sigFullInt = theFitter.makeFitter().createIntegral(iset,iset) dibosonInt = theFitter.makeDibosonPdf().createIntegral(iset,iset,'signal') dibosonFullInt = theFitter.makeDibosonPdf().createIntegral(iset,iset) WpJInt = theFitter.makeWpJPdf().createIntegral(iset,iset,'signal') WpJFullInt = theFitter.makeWpJPdf().createIntegral(iset,iset) ttbarInt = theFitter.makettbarPdf().createIntegral(iset,iset,'signal') ttbarFullInt = theFitter.makettbarPdf().createIntegral(iset,iset) SingleTopInt = theFitter.makeSingleTopPdf().createIntegral(iset,iset,'signal') SingleTopFullInt = theFitter.makeSingleTopPdf().createIntegral(iset,iset) QCDInt = theFitter.makeQCDPdf().createIntegral(iset,iset,'signal') QCDFullInt = theFitter.makeQCDPdf().createIntegral(iset,iset) ZpJInt = theFitter.makeZpJPdf().createIntegral(iset,iset,'signal') ZpJFullInt = theFitter.makeZpJPdf().createIntegral(iset,iset) ## print "*** yield vars ***" ## yields.Print("v") usig2 = 0. totalYield = 0. sigYield = 0.