Logo ROOT  
Reference Guide
rf316_llratioplot Namespace Reference

Variables

 bkg = ROOT.RooProdPdf("bkg", "bkg", [px, py, pz])
 c = ROOT.TCanvas("rf316_llratioplot", "rf316_llratioplot", 800, 400)
 data = model.generate({x, y, z}, 20000)
 dataSel = data.reduce(Cut="llratio>0.7")
 frame = x.frame(Title="Projection of 3D data and pdf on X", Bins=40)
 frame2 = x.frame(Title="Same projection on X with LLratio(y,z)>0.7", Bins=40)
 fsig = ROOT.RooRealVar("fsig", "signal fraction", 0.1, 0.0, 1.0)
 gx = ROOT.RooGaussian("gx", "gx", x, 0.0, 1.0)
 gy = ROOT.RooGaussian("gy", "gy", y, 0.0, 1.0)
 gz = ROOT.RooGaussian("gz", "gz", z, 0.0, 1.0)
 llratio_func = ROOT.RooFormulaVar("llratio", "log10(@0)-log10(@1)", [sigyz, totyz])
 mcprojData = model.generate({x, y, z}, 10000)
 mcprojDataSel = mcprojData.reduce(Cut="llratio>0.7")
 model = ROOT.RooAddPdf("model", "model", [sig, bkg], [fsig])
 ProjWData
 px = ROOT.RooPolynomial("px", "px", x, [-0.1, 0.004])
 py = ROOT.RooPolynomial("py", "py", y, [0.1, -0.004])
 pz = ROOT.RooPolynomial("pz", "pz", z)
 sig = ROOT.RooProdPdf("sig", "sig", [gx, gy, gz])
 sigyz = sig.createProjection({x})
 totyz = model.createProjection({x})
 x = ROOT.RooRealVar("x", "x", -5, 5)
 y = ROOT.RooRealVar("y", "y", -5, 5)
 z = ROOT.RooRealVar("z", "z", -5, 5)

Variable Documentation

◆ bkg

rf316_llratioplot.bkg = ROOT.RooProdPdf("bkg", "bkg", [px, py, pz])

Definition at line 35 of file rf316_llratioplot.py.

◆ c

rf316_llratioplot.c = ROOT.TCanvas("rf316_llratioplot", "rf316_llratioplot", 800, 400)

Definition at line 92 of file rf316_llratioplot.py.

◆ data

rf316_llratioplot.data = model.generate({x, y, z}, 20000)

Definition at line 41 of file rf316_llratioplot.py.

◆ dataSel

rf316_llratioplot.dataSel = data.reduce(Cut="llratio>0.7")

Definition at line 69 of file rf316_llratioplot.py.

◆ frame

rf316_llratioplot.frame = x.frame(Title="Projection of 3D data and pdf on X", Bins=40)

Definition at line 47 of file rf316_llratioplot.py.

◆ frame2

rf316_llratioplot.frame2 = x.frame(Title="Same projection on X with LLratio(y,z)>0.7", Bins=40)

Definition at line 72 of file rf316_llratioplot.py.

◆ fsig

rf316_llratioplot.fsig = ROOT.RooRealVar("fsig", "signal fraction", 0.1, 0.0, 1.0)

Definition at line 38 of file rf316_llratioplot.py.

◆ gx

rf316_llratioplot.gx = ROOT.RooGaussian("gx", "gx", x, 0.0, 1.0)

Definition at line 26 of file rf316_llratioplot.py.

◆ gy

rf316_llratioplot.gy = ROOT.RooGaussian("gy", "gy", y, 0.0, 1.0)

Definition at line 27 of file rf316_llratioplot.py.

◆ gz

rf316_llratioplot.gz = ROOT.RooGaussian("gz", "gz", z, 0.0, 1.0)

Definition at line 28 of file rf316_llratioplot.py.

◆ llratio_func

rf316_llratioplot.llratio_func = ROOT.RooFormulaVar("llratio", "log10(@0)-log10(@1)", [sigyz, totyz])

Definition at line 60 of file rf316_llratioplot.py.

◆ mcprojData

rf316_llratioplot.mcprojData = model.generate({x, y, z}, 10000)

Definition at line 81 of file rf316_llratioplot.py.

◆ mcprojDataSel

rf316_llratioplot.mcprojDataSel = mcprojData.reduce(Cut="llratio>0.7")

Definition at line 86 of file rf316_llratioplot.py.

◆ model

rf316_llratioplot.model = ROOT.RooAddPdf("model", "model", [sig, bkg], [fsig])

Definition at line 39 of file rf316_llratioplot.py.

◆ ProjWData

rf316_llratioplot.ProjWData

Definition at line 90 of file rf316_llratioplot.py.

◆ px

rf316_llratioplot.px = ROOT.RooPolynomial("px", "px", x, [-0.1, 0.004])

Definition at line 32 of file rf316_llratioplot.py.

◆ py

rf316_llratioplot.py = ROOT.RooPolynomial("py", "py", y, [0.1, -0.004])

Definition at line 33 of file rf316_llratioplot.py.

◆ pz

rf316_llratioplot.pz = ROOT.RooPolynomial("pz", "pz", z)

Definition at line 34 of file rf316_llratioplot.py.

◆ sig

rf316_llratioplot.sig = ROOT.RooProdPdf("sig", "sig", [gx, gy, gz])

Definition at line 29 of file rf316_llratioplot.py.

◆ sigyz

rf316_llratioplot.sigyz = sig.createProjection({x})

Definition at line 56 of file rf316_llratioplot.py.

◆ totyz

rf316_llratioplot.totyz = model.createProjection({x})

Definition at line 57 of file rf316_llratioplot.py.

◆ x

rf316_llratioplot.x = ROOT.RooRealVar("x", "x", -5, 5)

Definition at line 21 of file rf316_llratioplot.py.

◆ y

rf316_llratioplot.y = ROOT.RooRealVar("y", "y", -5, 5)

Definition at line 22 of file rf316_llratioplot.py.

◆ z

rf316_llratioplot.z = ROOT.RooRealVar("z", "z", -5, 5)

Definition at line 23 of file rf316_llratioplot.py.