Logo ROOT  
Reference Guide
TwoSidedFrequentistUpperLimitWithBands Namespace Reference

Variables

float additionalToysFac = 0.5
 allVars = mc.GetPdf().getVariables()
 arMax = belt.GetAcceptanceRegionMax(tmpPoint)
int band1sigDown = 0
int band1sigUp = 0
int band2sigDown = 0
int band2sigUp = 0
int bandMedian = 0
 belt = fc.GetConfidenceBelt()
 bins = histOfUL.GetIntegral()
 c1 = ROOT.TCanvas()
int CLb = 0
int CLbinclusive = 0
float confidenceLevel = 0.95
 cumulative = histOfUL.Clone("cumulative")
 data = w.data(dataName)
str dataName = "obsData"
 fc = ROOT.RooStats.FeldmanCousins(data, mc)
 fileExist = not ROOT.gSystem.AccessPathName(filename)
str filename = ""
 firstPOI = mc.GetParametersOfInterest().first()
 histOfThresholds = ROOT.TH1F("histOfThresholds", "", parameterScan.numEntries(), firstPOI.getMin(), firstPOI.getMax())
 histOfUL = ROOT.TH1F("histOfUL", "", 100, 0, firstPOI.getMax())
str infile = ""
 inputFile = ROOT.TFile.Open(filename)
 interval = fc.GetInterval()
 mc = w.obj(modelConfigName)
str modelConfigName = "ModelConfig"
 nll = mc.GetPdf().createNLL(data)
int nPointsToScan = 20
int nToyMC = 200
 observedUL = interval.UpperLimit(firstPOI)
 obsTSatObsUL = fc.GetTestStatSampler().EvaluateTestStatistic(data, tmpPOI)
 one = mc.GetPdf().generateSimGlobal(mc.GetGlobalObservables(), 1)
 parameterScan = fc.GetPointsToScan()
 paramsToGenerateData = poiAndNuisance.snapshot()
 poiAndNuisance = ROOT.RooArgSet()
 poiVal = tmpPoint.getRealValue(firstPOI.GetName())
 profile = nll.createProfile(mc.GetParametersOfInterest())
 testStat = toymcsampler.GetTestStatistic()
 thisTS = fc.GetTestStatSampler().EvaluateTestStatistic(toyData, tmpPOI)
int thisUL = 0
 tmpPOI = ROOT.RooArgSet(firstPOI)
 tmpPoint = parameterScan.get(i).clone("temp")
 toyData = mc.GetPdf().generate(mc.GetObservables(), 1)
 toymcsampler = fc.GetTestStatSampler()
 toyTSatObsUL = fc.GetTestStatSampler().EvaluateTestStatistic(toyData, tmpPOI)
 unconditionalObs = ROOT.RooArgSet()
 values = one.get()
 w = inputFile.Get(workspaceName)
str workspaceName = "combined"

Variable Documentation

◆ additionalToysFac

float TwoSidedFrequentistUpperLimitWithBands.additionalToysFac = 0.5

Definition at line 110 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ allVars

TwoSidedFrequentistUpperLimitWithBands.allVars = mc.GetPdf().getVariables()

Definition at line 291 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ arMax

TwoSidedFrequentistUpperLimitWithBands.arMax = belt.GetAcceptanceRegionMax(tmpPoint)

Definition at line 231 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ band1sigDown

TwoSidedFrequentistUpperLimitWithBands.band1sigDown = 0

Definition at line 348 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ band1sigUp

TwoSidedFrequentistUpperLimitWithBands.band1sigUp = 0

Definition at line 350 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ band2sigDown

TwoSidedFrequentistUpperLimitWithBands.band2sigDown = 0

Definition at line 347 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ band2sigUp

TwoSidedFrequentistUpperLimitWithBands.band2sigUp = 0

Definition at line 351 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ bandMedian

TwoSidedFrequentistUpperLimitWithBands.bandMedian = 0

Definition at line 349 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ belt

TwoSidedFrequentistUpperLimitWithBands.belt = fc.GetConfidenceBelt()

Definition at line 203 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ bins

TwoSidedFrequentistUpperLimitWithBands.bins = histOfUL.GetIntegral()

Definition at line 344 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ c1

TwoSidedFrequentistUpperLimitWithBands.c1 = ROOT.TCanvas()

Definition at line 235 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ CLb

int TwoSidedFrequentistUpperLimitWithBands.CLb = 0

Definition at line 263 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ CLbinclusive

int TwoSidedFrequentistUpperLimitWithBands.CLbinclusive = 0

Definition at line 264 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ confidenceLevel

float TwoSidedFrequentistUpperLimitWithBands.confidenceLevel = 0.95

Definition at line 107 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ cumulative

TwoSidedFrequentistUpperLimitWithBands.cumulative = histOfUL.Clone("cumulative")

Definition at line 345 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ data

TwoSidedFrequentistUpperLimitWithBands.data = w.data(dataName)

Definition at line 146 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ dataName

str TwoSidedFrequentistUpperLimitWithBands.dataName = "obsData"

Definition at line 104 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ fc

TwoSidedFrequentistUpperLimitWithBands.fc = ROOT.RooStats.FeldmanCousins(data, mc)

Definition at line 165 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ fileExist

TwoSidedFrequentistUpperLimitWithBands.fileExist = not ROOT.gSystem.AccessPathName(filename)

Definition at line 120 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ filename

str TwoSidedFrequentistUpperLimitWithBands.filename = ""

Definition at line 117 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ firstPOI

TwoSidedFrequentistUpperLimitWithBands.firstPOI = mc.GetParametersOfInterest().first()

Definition at line 154 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ histOfThresholds

TwoSidedFrequentistUpperLimitWithBands.histOfThresholds = ROOT.TH1F("histOfThresholds", "", parameterScan.numEntries(), firstPOI.getMin(), firstPOI.getMax())

Definition at line 220 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ histOfUL

TwoSidedFrequentistUpperLimitWithBands.histOfUL = ROOT.TH1F("histOfUL", "", 100, 0, firstPOI.getMax())

Definition at line 267 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ infile

str TwoSidedFrequentistUpperLimitWithBands.infile = ""

Definition at line 101 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ inputFile

TwoSidedFrequentistUpperLimitWithBands.inputFile = ROOT.TFile.Open(filename)

Definition at line 134 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ interval

TwoSidedFrequentistUpperLimitWithBands.interval = fc.GetInterval()

Definition at line 202 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ mc

TwoSidedFrequentistUpperLimitWithBands.mc = w.obj(modelConfigName)

Definition at line 143 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ modelConfigName

str TwoSidedFrequentistUpperLimitWithBands.modelConfigName = "ModelConfig"

Definition at line 103 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ nll

TwoSidedFrequentistUpperLimitWithBands.nll = mc.GetPdf().createNLL(data)

Definition at line 246 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ nPointsToScan

int TwoSidedFrequentistUpperLimitWithBands.nPointsToScan = 20

Definition at line 111 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ nToyMC

int TwoSidedFrequentistUpperLimitWithBands.nToyMC = 200

Definition at line 112 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ observedUL

TwoSidedFrequentistUpperLimitWithBands.observedUL = interval.UpperLimit(firstPOI)

Definition at line 212 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ obsTSatObsUL

TwoSidedFrequentistUpperLimitWithBands.obsTSatObsUL = fc.GetTestStatSampler().EvaluateTestStatistic(data, tmpPOI)

Definition at line 214 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ one

TwoSidedFrequentistUpperLimitWithBands.one = mc.GetPdf().generateSimGlobal(mc.GetGlobalObservables(), 1)

Definition at line 289 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ parameterScan

TwoSidedFrequentistUpperLimitWithBands.parameterScan = fc.GetPointsToScan()

Definition at line 217 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ paramsToGenerateData

TwoSidedFrequentistUpperLimitWithBands.paramsToGenerateData = poiAndNuisance.snapshot()

Definition at line 255 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ poiAndNuisance

TwoSidedFrequentistUpperLimitWithBands.poiAndNuisance = ROOT.RooArgSet()

Definition at line 250 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ poiVal

TwoSidedFrequentistUpperLimitWithBands.poiVal = tmpPoint.getRealValue(firstPOI.GetName())

Definition at line 232 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ profile

TwoSidedFrequentistUpperLimitWithBands.profile = nll.createProfile(mc.GetParametersOfInterest())

Definition at line 247 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ testStat

TwoSidedFrequentistUpperLimitWithBands.testStat = toymcsampler.GetTestStatistic()

Definition at line 181 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ thisTS

TwoSidedFrequentistUpperLimitWithBands.thisTS = fc.GetTestStatSampler().EvaluateTestStatistic(toyData, tmpPOI)

Definition at line 311 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ thisUL

TwoSidedFrequentistUpperLimitWithBands.thisUL = 0

Definition at line 305 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ tmpPOI

TwoSidedFrequentistUpperLimitWithBands.tmpPOI = ROOT.RooArgSet(firstPOI)

Definition at line 211 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ tmpPoint

TwoSidedFrequentistUpperLimitWithBands.tmpPoint = parameterScan.get(i).clone("temp")

Definition at line 229 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ toyData

TwoSidedFrequentistUpperLimitWithBands.toyData = mc.GetPdf().generate(mc.GetObservables(), 1)

Definition at line 281 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ toymcsampler

TwoSidedFrequentistUpperLimitWithBands.toymcsampler = fc.GetTestStatSampler()

Definition at line 180 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ toyTSatObsUL

TwoSidedFrequentistUpperLimitWithBands.toyTSatObsUL = fc.GetTestStatSampler().EvaluateTestStatistic(toyData, tmpPOI)

Definition at line 296 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ unconditionalObs

TwoSidedFrequentistUpperLimitWithBands.unconditionalObs = ROOT.RooArgSet()

Definition at line 259 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ values

TwoSidedFrequentistUpperLimitWithBands.values = one.get()

Definition at line 290 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ w

TwoSidedFrequentistUpperLimitWithBands.w = inputFile.Get(workspaceName)

Definition at line 140 of file TwoSidedFrequentistUpperLimitWithBands.py.

◆ workspaceName

str TwoSidedFrequentistUpperLimitWithBands.workspaceName = "combined"

Definition at line 102 of file TwoSidedFrequentistUpperLimitWithBands.py.