Logo ROOT  
Reference Guide
rs_bernsteinCorrection Namespace Reference

Variables

 bernsteinCorrection = ROOT.RooStats.BernsteinCorrection(tolerance)
 c1 = ROOT.TCanvas()
bool checkSamplingDist = True
 corrected = wks["corrected"]
 data = reality.generate(x, 1000)
 degree = bernsteinCorrection.ImportCorrectedPdf(wks, "nominal", "x", "data")
 frame = x.frame()
int highRange = 5
 LineColor
 LineStyle
int lowRange = -1
 narrow = ROOT.RooGaussian("narrow", "", x, ROOT.RooFit.RooConst(0.0), ROOT.RooFit.RooConst(0.8))
 nominal = ROOT.RooGaussian("nominal", "", x, ROOT.RooFit.RooConst(0.0), sigma)
int numToyMC = 20
 poly = wks["poly"]
 PrintLevel
 reality = ROOT.RooAddPdf("reality", "", [narrow, wide], ROOT.RooFit.RooConst(0.8))
 Rename
 samplingDist = ROOT.TH1F("samplingDist", "", 20, 0, 10)
 samplingDistExtra = ROOT.TH1F("samplingDistExtra", "", 20, 0, 10)
 sigma = ROOT.RooRealVar("sigma", "", 1.0, 0, 10)
float tolerance = 0.05
 wide = ROOT.RooGaussian("wide", "", x, ROOT.RooFit.RooConst(0.0), ROOT.RooFit.RooConst(2.0))
 wks = ROOT.RooWorkspace("myWorksspace")
 x = ROOT.RooRealVar("x", "x", lowRange, highRange)

Variable Documentation

◆ bernsteinCorrection

rs_bernsteinCorrection.bernsteinCorrection = ROOT.RooStats.BernsteinCorrection(tolerance)

Definition at line 63 of file rs_bernsteinCorrection.py.

◆ c1

rs_bernsteinCorrection.c1 = ROOT.TCanvas()

Definition at line 103 of file rs_bernsteinCorrection.py.

◆ checkSamplingDist

bool rs_bernsteinCorrection.checkSamplingDist = True

Definition at line 100 of file rs_bernsteinCorrection.py.

◆ corrected

rs_bernsteinCorrection.corrected = wks["corrected"]

Definition at line 79 of file rs_bernsteinCorrection.py.

◆ data

rs_bernsteinCorrection.data = reality.generate(x, 1000)

Definition at line 44 of file rs_bernsteinCorrection.py.

◆ degree

rs_bernsteinCorrection.degree = bernsteinCorrection.ImportCorrectedPdf(wks, "nominal", "x", "data")

Definition at line 64 of file rs_bernsteinCorrection.py.

◆ frame

rs_bernsteinCorrection.frame = x.frame()

Definition at line 72 of file rs_bernsteinCorrection.py.

◆ highRange

int rs_bernsteinCorrection.highRange = 5

Definition at line 34 of file rs_bernsteinCorrection.py.

◆ LineColor

rs_bernsteinCorrection.LineColor

Definition at line 85 of file rs_bernsteinCorrection.py.

◆ LineStyle

rs_bernsteinCorrection.LineStyle

Definition at line 91 of file rs_bernsteinCorrection.py.

◆ lowRange

int rs_bernsteinCorrection.lowRange = -1

Definition at line 33 of file rs_bernsteinCorrection.py.

◆ narrow

rs_bernsteinCorrection.narrow = ROOT.RooGaussian("narrow", "", x, ROOT.RooFit.RooConst(0.0), ROOT.RooFit.RooConst(0.8))

Definition at line 40 of file rs_bernsteinCorrection.py.

◆ nominal

rs_bernsteinCorrection.nominal = ROOT.RooGaussian("nominal", "", x, ROOT.RooFit.RooConst(0.0), sigma)

Definition at line 48 of file rs_bernsteinCorrection.py.

◆ numToyMC

int rs_bernsteinCorrection.numToyMC = 20

Definition at line 101 of file rs_bernsteinCorrection.py.

◆ poly

rs_bernsteinCorrection.poly = wks["poly"]

Definition at line 89 of file rs_bernsteinCorrection.py.

◆ PrintLevel

rs_bernsteinCorrection.PrintLevel

Definition at line 75 of file rs_bernsteinCorrection.py.

◆ reality

rs_bernsteinCorrection.reality = ROOT.RooAddPdf("reality", "", [narrow, wide], ROOT.RooFit.RooConst(0.8))

Definition at line 42 of file rs_bernsteinCorrection.py.

◆ Rename

rs_bernsteinCorrection.Rename

Definition at line 52 of file rs_bernsteinCorrection.py.

◆ samplingDist

rs_bernsteinCorrection.samplingDist = ROOT.TH1F("samplingDist", "", 20, 0, 10)

Definition at line 114 of file rs_bernsteinCorrection.py.

◆ samplingDistExtra

rs_bernsteinCorrection.samplingDistExtra = ROOT.TH1F("samplingDistExtra", "", 20, 0, 10)

Definition at line 115 of file rs_bernsteinCorrection.py.

◆ sigma

rs_bernsteinCorrection.sigma = ROOT.RooRealVar("sigma", "", 1.0, 0, 10)

Definition at line 47 of file rs_bernsteinCorrection.py.

◆ tolerance

float rs_bernsteinCorrection.tolerance = 0.05

Definition at line 62 of file rs_bernsteinCorrection.py.

◆ wide

rs_bernsteinCorrection.wide = ROOT.RooGaussian("wide", "", x, ROOT.RooFit.RooConst(0.0), ROOT.RooFit.RooConst(2.0))

Definition at line 41 of file rs_bernsteinCorrection.py.

◆ wks

rs_bernsteinCorrection.wks = ROOT.RooWorkspace("myWorksspace")

Definition at line 50 of file rs_bernsteinCorrection.py.

◆ x

rs_bernsteinCorrection.x = ROOT.RooRealVar("x", "x", lowRange, highRange)

Definition at line 37 of file rs_bernsteinCorrection.py.