Logo ROOT  
Reference Guide
HybridInstructional Namespace Reference

Variables

 b_model = ROOT.RooStats.ModelConfig("B_model", w)
 b_modelXY = ROOT.RooStats.ModelConfig("B_modelXY", w)
 binCount = ROOT.BinCountTestStat("x")
 c = ROOT.TCanvas()
 cdf = w.pdf("averagedModel").createCdf(w.var("x"))
 data = ROOT.RooDataSet("d", "d", w.set("obs"))
 dataXY = ROOT.RooDataSet("dXY", "dXY", w.set("obsXY"))
 frame = w.var("x").frame(Range=(50, 230))
 hc1 = ROOT.RooStats.HybridCalculator(data, sb_model, b_model)
 hc2 = ROOT.RooStats.HybridCalculator(data, sb_model, b_model)
 hc3 = ROOT.RooStats.HybridCalculator(dataXY, sb_modelXY, b_modelXY)
 LineColor
 mlets = ROOT.RooStats.MaxLikelihoodEstimateTestStat(sb_modelXY.GetPdf(), w.var("s"))
 msglevel = ROOT.RooMsgService.instance().globalKillBelow()
int ntoys = 6000
int nToysRatio = 20
 p1 = ROOT.RooStats.HypoTestPlot(r1, 30)
 p2 = ROOT.RooStats.HypoTestPlot(r2, 30)
 p3 = ROOT.RooStats.HypoTestPlot(r3, 50)
 p_Bi = ROOT.RooStats.NumberCountingUtils.BinomialWithTauObsP(150, 100, 1)
 profll = ROOT.RooStats.ProfileLikelihoodTestStat(b_modelXY.GetPdf())
 r1 = hc1.GetHypoTest()
 r2 = hc2.GetHypoTest()
 r3 = hc3.GetHypoTest()
 ropl
 sb_model = ROOT.RooStats.ModelConfig("S+B_model", w)
 sb_modelXY = ROOT.RooStats.ModelConfig("S+B_modelXY", w)
 slrts = ROOT.RooStats.SimpleLikelihoodRatioTestStat(b_model.GetPdf(), sb_model.GetPdf())
 t = ROOT.TStopwatch()
 toymcs1 = hc1.GetTestStatSampler()
 toymcs2 = hc2.GetTestStatSampler()
 toymcs3 = hc3.GetTestStatSampler()
 w = ROOT.RooWorkspace("w")
 Z_Bi = ROOT.RooStats.NumberCountingUtils.BinomialWithTauObsZ(150, 100, 1)

Variable Documentation

◆ b_model

HybridInstructional.b_model = ROOT.RooStats.ModelConfig("B_model", w)

Definition at line 225 of file HybridInstructional.py.

◆ b_modelXY

HybridInstructional.b_modelXY = ROOT.RooStats.ModelConfig("B_modelXY", w)

Definition at line 404 of file HybridInstructional.py.

◆ binCount

HybridInstructional.binCount = ROOT.BinCountTestStat("x")

Definition at line 250 of file HybridInstructional.py.

◆ c

HybridInstructional.c = ROOT.TCanvas()

Definition at line 117 of file HybridInstructional.py.

◆ cdf

HybridInstructional.cdf = w.pdf("averagedModel").createCdf(w.var("x"))

Definition at line 169 of file HybridInstructional.py.

◆ data

HybridInstructional.data = ROOT.RooDataSet("d", "d", w.set("obs"))

Definition at line 219 of file HybridInstructional.py.

◆ dataXY

HybridInstructional.dataXY = ROOT.RooDataSet("dXY", "dXY", w.set("obsXY"))

Definition at line 400 of file HybridInstructional.py.

◆ frame

HybridInstructional.frame = w.var("x").frame(Range=(50, 230))

Definition at line 153 of file HybridInstructional.py.

◆ hc1

HybridInstructional.hc1 = ROOT.RooStats.HybridCalculator(data, sb_model, b_model)

Definition at line 294 of file HybridInstructional.py.

◆ hc2

HybridInstructional.hc2 = ROOT.RooStats.HybridCalculator(data, sb_model, b_model)

Definition at line 346 of file HybridInstructional.py.

◆ hc3

HybridInstructional.hc3 = ROOT.RooStats.HybridCalculator(dataXY, sb_modelXY, b_modelXY)

Definition at line 455 of file HybridInstructional.py.

◆ LineColor

HybridInstructional.LineColor

Definition at line 154 of file HybridInstructional.py.

◆ mlets

HybridInstructional.mlets = ROOT.RooStats.MaxLikelihoodEstimateTestStat(sb_modelXY.GetPdf(), w.var("s"))

Definition at line 443 of file HybridInstructional.py.

◆ msglevel

HybridInstructional.msglevel = ROOT.RooMsgService.instance().globalKillBelow()

Definition at line 135 of file HybridInstructional.py.

◆ ntoys

int HybridInstructional.ntoys = 6000

Definition at line 61 of file HybridInstructional.py.

◆ nToysRatio

int HybridInstructional.nToysRatio = 20

Definition at line 62 of file HybridInstructional.py.

◆ p1

HybridInstructional.p1 = ROOT.RooStats.HypoTestPlot(r1, 30)

Definition at line 329 of file HybridInstructional.py.

◆ p2

HybridInstructional.p2 = ROOT.RooStats.HypoTestPlot(r2, 30)

Definition at line 378 of file HybridInstructional.py.

◆ p3

HybridInstructional.p3 = ROOT.RooStats.HypoTestPlot(r3, 50)

Definition at line 488 of file HybridInstructional.py.

◆ p_Bi

HybridInstructional.p_Bi = ROOT.RooStats.NumberCountingUtils.BinomialWithTauObsP(150, 100, 1)

Definition at line 186 of file HybridInstructional.py.

◆ profll

HybridInstructional.profll = ROOT.RooStats.ProfileLikelihoodTestStat(b_modelXY.GetPdf())

Definition at line 439 of file HybridInstructional.py.

◆ r1

HybridInstructional.r1 = hc1.GetHypoTest()

Definition at line 317 of file HybridInstructional.py.

◆ r2

HybridInstructional.r2 = hc2.GetHypoTest()

Definition at line 367 of file HybridInstructional.py.

◆ r3

HybridInstructional.r3 = hc3.GetHypoTest()

Definition at line 476 of file HybridInstructional.py.

◆ ropl

HybridInstructional.ropl
Initial value:
1= ROOT.RooStats.RatioOfProfiledLikelihoodsTestStat(
2 b_modelXY.GetPdf(), sb_modelXY.GetPdf(), sb_modelXY.GetSnapshot()
3)

Definition at line 432 of file HybridInstructional.py.

◆ sb_model

HybridInstructional.sb_model = ROOT.RooStats.ModelConfig("S+B_model", w)

Definition at line 234 of file HybridInstructional.py.

◆ sb_modelXY

HybridInstructional.sb_modelXY = ROOT.RooStats.ModelConfig("S+B_modelXY", w)

Definition at line 414 of file HybridInstructional.py.

◆ slrts

HybridInstructional.slrts = ROOT.RooStats.SimpleLikelihoodRatioTestStat(b_model.GetPdf(), sb_model.GetPdf())

Definition at line 341 of file HybridInstructional.py.

◆ t

HybridInstructional.t = ROOT.TStopwatch()

Definition at line 115 of file HybridInstructional.py.

◆ toymcs1

HybridInstructional.toymcs1 = hc1.GetTestStatSampler()

Definition at line 295 of file HybridInstructional.py.

◆ toymcs2

HybridInstructional.toymcs2 = hc2.GetTestStatSampler()

Definition at line 347 of file HybridInstructional.py.

◆ toymcs3

HybridInstructional.toymcs3 = hc3.GetTestStatSampler()

Definition at line 456 of file HybridInstructional.py.

◆ w

HybridInstructional.w = ROOT.RooWorkspace("w")

Definition at line 126 of file HybridInstructional.py.

◆ Z_Bi

HybridInstructional.Z_Bi = ROOT.RooStats.NumberCountingUtils.BinomialWithTauObsZ(150, 100, 1)

Definition at line 187 of file HybridInstructional.py.