Logo ROOT  
Reference Guide
hf001_example Namespace Reference

Variables

 background1 = ROOT.RooStats.HistFactory.Sample("background1", "background1", InputFile)
 background2 = ROOT.RooStats.HistFactory.Sample("background2", "background2", InputFile)
 chan = ROOT.RooStats.HistFactory.Channel("channel1")
 frame = poi.frame()
str InputFile = "./data/example.root"
 line = ROOT.TLine(xmin, 0.5, xmax, 0.5)
 line90 = ROOT.TLine(xmin, 2.71 / 2, xmax, 2.71 / 2)
 line95 = ROOT.TLine(xmin, 3.84 / 2, xmax, 3.84 / 2)
 LineColor
 LineStyle
 meas = ROOT.RooStats.HistFactory.Measurement("meas", "meas")
 modelConfig = ws["ModelConfig"]
 nll = pdf.createNLL(ws["obsData"])
 pdf = modelConfig.GetPdf()
 poi = modelConfig.GetParametersOfInterest().first()
 profile = nll.createProfile(poi)
 profileLikelihoodCanvas = ROOT.TCanvas("combined", "", 800, 600)
 result
 ShiftToZero
 signal = ROOT.RooStats.HistFactory.Sample("signal", "signal", InputFile)
 True
 ws = ROOT.RooStats.HistFactory.MakeModelAndMeasurementFast(meas)
 xmax = poi.getMax()
 xmin = poi.getMin()

Variable Documentation

◆ background1

hf001_example.background1 = ROOT.RooStats.HistFactory.Sample("background1", "background1", InputFile)

Definition at line 52 of file hf001_example.py.

◆ background2

hf001_example.background2 = ROOT.RooStats.HistFactory.Sample("background2", "background2", InputFile)

Definition at line 59 of file hf001_example.py.

◆ chan

hf001_example.chan = ROOT.RooStats.HistFactory.Channel("channel1")

Definition at line 38 of file hf001_example.py.

◆ frame

hf001_example.frame = poi.frame()

Definition at line 99 of file hf001_example.py.

◆ InputFile

str hf001_example.InputFile = "./data/example.root"

Definition at line 17 of file hf001_example.py.

◆ line

hf001_example.line = ROOT.TLine(xmin, 0.5, xmax, 0.5)

Definition at line 110 of file hf001_example.py.

◆ line90

hf001_example.line90 = ROOT.TLine(xmin, 2.71 / 2, xmax, 2.71 / 2)

Definition at line 112 of file hf001_example.py.

◆ line95

hf001_example.line95 = ROOT.TLine(xmin, 3.84 / 2, xmax, 3.84 / 2)

Definition at line 114 of file hf001_example.py.

◆ LineColor

hf001_example.LineColor

Definition at line 121 of file hf001_example.py.

◆ LineStyle

hf001_example.LineStyle

Definition at line 121 of file hf001_example.py.

◆ meas

hf001_example.meas = ROOT.RooStats.HistFactory.Measurement("meas", "meas")

Definition at line 26 of file hf001_example.py.

◆ modelConfig

hf001_example.modelConfig = ws["ModelConfig"]

Definition at line 82 of file hf001_example.py.

◆ nll

hf001_example.nll = pdf.createNLL(ws["obsData"])

Definition at line 95 of file hf001_example.py.

◆ pdf

hf001_example.pdf = modelConfig.GetPdf()

Definition at line 85 of file hf001_example.py.

◆ poi

hf001_example.poi = modelConfig.GetParametersOfInterest().first()

Definition at line 93 of file hf001_example.py.

◆ profile

hf001_example.profile = nll.createProfile(poi)

Definition at line 96 of file hf001_example.py.

◆ profileLikelihoodCanvas

hf001_example.profileLikelihoodCanvas = ROOT.TCanvas("combined", "", 800, 600)

Definition at line 105 of file hf001_example.py.

◆ result

hf001_example.result
Initial value:
1= pdf.fitTo(
2 ws["obsData"], Save=True, PrintLevel=-1, GlobalObservables=modelConfig.GetGlobalObservables(), Minos=True
3)

Definition at line 88 of file hf001_example.py.

◆ ShiftToZero

hf001_example.ShiftToZero

Definition at line 121 of file hf001_example.py.

◆ signal

hf001_example.signal = ROOT.RooStats.HistFactory.Sample("signal", "signal", InputFile)

Definition at line 45 of file hf001_example.py.

◆ True

hf001_example.True

Definition at line 121 of file hf001_example.py.

◆ ws

hf001_example.ws = ROOT.RooStats.HistFactory.MakeModelAndMeasurementFast(meas)

Definition at line 79 of file hf001_example.py.

◆ xmax

hf001_example.xmax = poi.getMax()

Definition at line 108 of file hf001_example.py.

◆ xmin

hf001_example.xmin = poi.getMin()

Definition at line 107 of file hf001_example.py.