Logo ROOT  
Reference Guide
rf709_BarlowBeeston Namespace Reference

Variables

 Abkg0 = ROOT.RooRealVar("Abkg", "Abkg", 1, 0.01, 5000)
 Abkg1 = ROOT.RooRealVar("Abkg", "Abkg", 1, 0.01, 5000)
 Abkg2 = ROOT.RooRealVar("Abkg", "Abkg", 1, 0.01, 5000)
 Asig0 = ROOT.RooRealVar("Asig", "Asig", 1, 0.01, 5000)
 Asig1 = ROOT.RooRealVar("Asig", "Asig", 1, 0.01, 5000)
 Asig2 = ROOT.RooRealVar("Asig", "Asig", 1, 0.01, 5000)
 bkgData = u.generate(x, 1000)
 can = ROOT.TCanvas("can", "", 1500, 600)
 Components
 dh_bkg = u.generateBinned(x, 10000)
 dh_sig = g.generateBinned(x, 50)
 frame = x.frame(Title="No template uncertainties")
 g = ROOT.RooGaussian("g", "Gauss", x, meanG, sigG)
 hc_bkg = ROOT.RooHistConstraint("hc_bkg", "hc_bkg", p_ph_bkg1)
 hc_sig = ROOT.RooHistConstraint("hc_sig", "hc_sig", p_ph_sig1)
 hc_sigbkg = ROOT.RooHistConstraint("hc_sigbkg", "hc_sigbkg", {p_ph_sig2, p_ph_bkg2})
 LineColor
 MarkerColor
 meanG = ROOT.RooRealVar("meanG", "meanG", 1, -10, 10)
 model0 = ROOT.RooRealSumPdf("model0", "model0", [p_h_sig, p_h_bkg], [Asig0, Abkg0], True)
 model1 = ROOT.RooProdPdf("model1", "model1", {hc_sig, hc_bkg}, Conditional=(model_tmp, x))
 model2 = ROOT.RooProdPdf("model2", "model2", hc_sigbkg, Conditional=(model2_tmp, x))
 model2_tmp = ROOT.RooRealSumPdf("sp_ph", "sp_ph", [p_ph_sig2, p_ph_bkg2], [Asig2, Abkg2], True)
 model_tmp = ROOT.RooRealSumPdf("sp_ph", "sp_ph", [p_ph_sig1, p_ph_bkg1], [Asig1, Abkg1], True)
 p_h_bkg = ROOT.RooHistFunc("p_h_bkg", "p_h_bkg", x, dh_bkg)
 p_h_sig = ROOT.RooHistFunc("p_h_sig", "p_h_sig", x, dh_sig)
 p_ph_bkg1 = ROOT.RooParamHistFunc("p_ph_bkg", "p_ph_bkg", dh_bkg, x)
dict p_ph_bkg1_set = {p_ph_bkg1}
 p_ph_bkg2 = ROOT.RooParamHistFunc("p_ph_bkg2", "p_ph_bkg2", dh_bkg, x, p_ph_sig2, True)
dict p_ph_bkg2_set = {p_ph_bkg2}
dict p_ph_bkg_set = {p_h_bkg}
 p_ph_sig1 = ROOT.RooParamHistFunc("p_ph_sig", "p_ph_sig", dh_sig, x)
dict p_ph_sig1_set = {p_ph_sig1}
 p_ph_sig2 = ROOT.RooParamHistFunc("p_ph_sig2", "p_ph_sig2", dh_sig, x)
dict p_ph_sig2_set = {p_ph_sig2}
dict p_ph_sig_set = {p_h_sig}
 Parameters
 pt = ROOT.TPaveText(-19.5, 1, -2, 25)
list pt_text1
list pt_text2
list pt_text3
 result0 = model0.fitTo(sumData, PrintLevel=0, Save=True)
 result1 = model1.fitTo(sumData, PrintLevel=0, Save=True)
 result2 = model2.fitTo(sumData, PrintLevel=0, Save=True)
 sigData = g.generate(x, 50)
 sigG = ROOT.RooRealVar("sigG", "sigG", 1.5, -10, 10)
 sumData = ROOT.RooDataSet("sumData", "Gauss + Uniform", x)
 u = ROOT.RooUniform("u", "Uniform", x)
 VisualizeError
 x = ROOT.RooRealVar("x", "x", -20, 20)

Variable Documentation

◆ Abkg0

rf709_BarlowBeeston.Abkg0 = ROOT.RooRealVar("Abkg", "Abkg", 1, 0.01, 5000)

Definition at line 53 of file rf709_BarlowBeeston.py.

◆ Abkg1

rf709_BarlowBeeston.Abkg1 = ROOT.RooRealVar("Abkg", "Abkg", 1, 0.01, 5000)

Definition at line 66 of file rf709_BarlowBeeston.py.

◆ Abkg2

rf709_BarlowBeeston.Abkg2 = ROOT.RooRealVar("Abkg", "Abkg", 1, 0.01, 5000)

Definition at line 94 of file rf709_BarlowBeeston.py.

◆ Asig0

rf709_BarlowBeeston.Asig0 = ROOT.RooRealVar("Asig", "Asig", 1, 0.01, 5000)

Definition at line 52 of file rf709_BarlowBeeston.py.

◆ Asig1

rf709_BarlowBeeston.Asig1 = ROOT.RooRealVar("Asig", "Asig", 1, 0.01, 5000)

Definition at line 65 of file rf709_BarlowBeeston.py.

◆ Asig2

rf709_BarlowBeeston.Asig2 = ROOT.RooRealVar("Asig", "Asig", 1, 0.01, 5000)

Definition at line 93 of file rf709_BarlowBeeston.py.

◆ bkgData

rf709_BarlowBeeston.bkgData = u.generate(x, 1000)

Definition at line 30 of file rf709_BarlowBeeston.py.

◆ can

rf709_BarlowBeeston.can = ROOT.TCanvas("can", "", 1500, 600)

Definition at line 113 of file rf709_BarlowBeeston.py.

◆ Components

rf709_BarlowBeeston.Components

Definition at line 132 of file rf709_BarlowBeeston.py.

◆ dh_bkg

rf709_BarlowBeeston.dh_bkg = u.generateBinned(x, 10000)

Definition at line 42 of file rf709_BarlowBeeston.py.

◆ dh_sig

rf709_BarlowBeeston.dh_sig = g.generateBinned(x, 50)

Definition at line 41 of file rf709_BarlowBeeston.py.

◆ frame

rf709_BarlowBeeston.frame = x.frame(Title="No template uncertainties")

Definition at line 122 of file rf709_BarlowBeeston.py.

◆ g

rf709_BarlowBeeston.g = ROOT.RooGaussian("g", "Gauss", x, meanG, sigG)

Definition at line 24 of file rf709_BarlowBeeston.py.

◆ hc_bkg

rf709_BarlowBeeston.hc_bkg = ROOT.RooHistConstraint("hc_bkg", "hc_bkg", p_ph_bkg1)

Definition at line 75 of file rf709_BarlowBeeston.py.

◆ hc_sig

rf709_BarlowBeeston.hc_sig = ROOT.RooHistConstraint("hc_sig", "hc_sig", p_ph_sig1)

Definition at line 74 of file rf709_BarlowBeeston.py.

◆ hc_sigbkg

rf709_BarlowBeeston.hc_sigbkg = ROOT.RooHistConstraint("hc_sigbkg", "hc_sigbkg", {p_ph_sig2, p_ph_bkg2})

Definition at line 100 of file rf709_BarlowBeeston.py.

◆ LineColor

rf709_BarlowBeeston.LineColor

Definition at line 125 of file rf709_BarlowBeeston.py.

◆ MarkerColor

rf709_BarlowBeeston.MarkerColor

Definition at line 136 of file rf709_BarlowBeeston.py.

◆ meanG

rf709_BarlowBeeston.meanG = ROOT.RooRealVar("meanG", "meanG", 1, -10, 10)

Definition at line 22 of file rf709_BarlowBeeston.py.

◆ model0

rf709_BarlowBeeston.model0 = ROOT.RooRealSumPdf("model0", "model0", [p_h_sig, p_h_bkg], [Asig0, Abkg0], True)

Definition at line 56 of file rf709_BarlowBeeston.py.

◆ model1

rf709_BarlowBeeston.model1 = ROOT.RooProdPdf("model1", "model1", {hc_sig, hc_bkg}, Conditional=(model_tmp, x))

Definition at line 78 of file rf709_BarlowBeeston.py.

◆ model2

rf709_BarlowBeeston.model2 = ROOT.RooProdPdf("model2", "model2", hc_sigbkg, Conditional=(model2_tmp, x))

Definition at line 103 of file rf709_BarlowBeeston.py.

◆ model2_tmp

rf709_BarlowBeeston.model2_tmp = ROOT.RooRealSumPdf("sp_ph", "sp_ph", [p_ph_sig2, p_ph_bkg2], [Asig2, Abkg2], True)

Definition at line 97 of file rf709_BarlowBeeston.py.

◆ model_tmp

rf709_BarlowBeeston.model_tmp = ROOT.RooRealSumPdf("sp_ph", "sp_ph", [p_ph_sig1, p_ph_bkg1], [Asig1, Abkg1], True)

Definition at line 69 of file rf709_BarlowBeeston.py.

◆ p_h_bkg

rf709_BarlowBeeston.p_h_bkg = ROOT.RooHistFunc("p_h_bkg", "p_h_bkg", x, dh_bkg)

Definition at line 49 of file rf709_BarlowBeeston.py.

◆ p_h_sig

rf709_BarlowBeeston.p_h_sig = ROOT.RooHistFunc("p_h_sig", "p_h_sig", x, dh_sig)

Definition at line 48 of file rf709_BarlowBeeston.py.

◆ p_ph_bkg1

rf709_BarlowBeeston.p_ph_bkg1 = ROOT.RooParamHistFunc("p_ph_bkg", "p_ph_bkg", dh_bkg, x)

Definition at line 63 of file rf709_BarlowBeeston.py.

◆ p_ph_bkg1_set

rf709_BarlowBeeston.p_ph_bkg1_set = {p_ph_bkg1}

Definition at line 161 of file rf709_BarlowBeeston.py.

◆ p_ph_bkg2

rf709_BarlowBeeston.p_ph_bkg2 = ROOT.RooParamHistFunc("p_ph_bkg2", "p_ph_bkg2", dh_bkg, x, p_ph_sig2, True)

Definition at line 91 of file rf709_BarlowBeeston.py.

◆ p_ph_bkg2_set

rf709_BarlowBeeston.p_ph_bkg2_set = {p_ph_bkg2}

Definition at line 193 of file rf709_BarlowBeeston.py.

◆ p_ph_bkg_set

rf709_BarlowBeeston.p_ph_bkg_set = {p_h_bkg}

Definition at line 131 of file rf709_BarlowBeeston.py.

◆ p_ph_sig1

rf709_BarlowBeeston.p_ph_sig1 = ROOT.RooParamHistFunc("p_ph_sig", "p_ph_sig", dh_sig, x)

Definition at line 62 of file rf709_BarlowBeeston.py.

◆ p_ph_sig1_set

rf709_BarlowBeeston.p_ph_sig1_set = {p_ph_sig1}

Definition at line 160 of file rf709_BarlowBeeston.py.

◆ p_ph_sig2

rf709_BarlowBeeston.p_ph_sig2 = ROOT.RooParamHistFunc("p_ph_sig2", "p_ph_sig2", dh_sig, x)

Definition at line 90 of file rf709_BarlowBeeston.py.

◆ p_ph_sig2_set

rf709_BarlowBeeston.p_ph_sig2_set = {p_ph_sig2}

Definition at line 192 of file rf709_BarlowBeeston.py.

◆ p_ph_sig_set

rf709_BarlowBeeston.p_ph_sig_set = {p_h_sig}

Definition at line 130 of file rf709_BarlowBeeston.py.

◆ Parameters

rf709_BarlowBeeston.Parameters

Definition at line 164 of file rf709_BarlowBeeston.py.

◆ pt

rf709_BarlowBeeston.pt = ROOT.TPaveText(-19.5, 1, -2, 25)

Definition at line 116 of file rf709_BarlowBeeston.py.

◆ pt_text1

list rf709_BarlowBeeston.pt_text1
Initial value:
1= [
2 "No template uncertainties",
3 "are taken into account.",
4 "This leads to low errors",
5 "for the parameters A, since",
6 "the only source of errors",
7 "are the data statistics.",
8]

Definition at line 139 of file rf709_BarlowBeeston.py.

◆ pt_text2

list rf709_BarlowBeeston.pt_text2
Initial value:
1= [
2 "With gamma parameters, the",
3 "signal & background templates",
4 "can adapt to the data.",
5 "Note how the blue signal",
6 "template changes its shape.",
7 "This leads to higher errors",
8 "of the scale parameters A.",
9]

Definition at line 170 of file rf709_BarlowBeeston.py.

◆ pt_text3

list rf709_BarlowBeeston.pt_text3
Initial value:
1= [
2 "When signal and background",
3 "template share one gamma para-",
4 "meter per bin, they adapt less.",
5 "The errors of the A parameters",
6 "also shrink slightly.",
7]

Definition at line 202 of file rf709_BarlowBeeston.py.

◆ result0

rf709_BarlowBeeston.result0 = model0.fitTo(sumData, PrintLevel=0, Save=True)

Definition at line 108 of file rf709_BarlowBeeston.py.

◆ result1

rf709_BarlowBeeston.result1 = model1.fitTo(sumData, PrintLevel=0, Save=True)

Definition at line 109 of file rf709_BarlowBeeston.py.

◆ result2

rf709_BarlowBeeston.result2 = model2.fitTo(sumData, PrintLevel=0, Save=True)

Definition at line 110 of file rf709_BarlowBeeston.py.

◆ sigData

rf709_BarlowBeeston.sigData = g.generate(x, 50)

Definition at line 29 of file rf709_BarlowBeeston.py.

◆ sigG

rf709_BarlowBeeston.sigG = ROOT.RooRealVar("sigG", "sigG", 1.5, -10, 10)

Definition at line 23 of file rf709_BarlowBeeston.py.

◆ sumData

rf709_BarlowBeeston.sumData = ROOT.RooDataSet("sumData", "Gauss + Uniform", x)

Definition at line 32 of file rf709_BarlowBeeston.py.

◆ u

rf709_BarlowBeeston.u = ROOT.RooUniform("u", "Uniform", x)

Definition at line 25 of file rf709_BarlowBeeston.py.

◆ VisualizeError

rf709_BarlowBeeston.VisualizeError

Definition at line 125 of file rf709_BarlowBeeston.py.

◆ x

rf709_BarlowBeeston.x = ROOT.RooRealVar("x", "x", -20, 20)

Definition at line 19 of file rf709_BarlowBeeston.py.