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) | |
Definition at line 35 of file rf316_llratioplot.py.
| rf316_llratioplot.c = ROOT.TCanvas("rf316_llratioplot", "rf316_llratioplot", 800, 400) |
Definition at line 92 of file rf316_llratioplot.py.
Definition at line 41 of file rf316_llratioplot.py.
| rf316_llratioplot.dataSel = data.reduce(Cut="llratio>0.7") |
Definition at line 69 of file rf316_llratioplot.py.
Definition at line 47 of file rf316_llratioplot.py.
Definition at line 72 of file rf316_llratioplot.py.
| rf316_llratioplot.fsig = ROOT.RooRealVar("fsig", "signal fraction", 0.1, 0.0, 1.0) |
Definition at line 38 of file rf316_llratioplot.py.
| rf316_llratioplot.gx = ROOT.RooGaussian("gx", "gx", x, 0.0, 1.0) |
Definition at line 26 of file rf316_llratioplot.py.
| rf316_llratioplot.gy = ROOT.RooGaussian("gy", "gy", y, 0.0, 1.0) |
Definition at line 27 of file rf316_llratioplot.py.
| rf316_llratioplot.gz = ROOT.RooGaussian("gz", "gz", z, 0.0, 1.0) |
Definition at line 28 of file rf316_llratioplot.py.
| rf316_llratioplot.llratio_func = ROOT.RooFormulaVar("llratio", "log10(@0)-log10(@1)", [sigyz, totyz]) |
Definition at line 60 of file rf316_llratioplot.py.
Definition at line 81 of file rf316_llratioplot.py.
| rf316_llratioplot.mcprojDataSel = mcprojData.reduce(Cut="llratio>0.7") |
Definition at line 86 of file rf316_llratioplot.py.
Definition at line 39 of file rf316_llratioplot.py.
| rf316_llratioplot.ProjWData |
Definition at line 90 of file rf316_llratioplot.py.
| rf316_llratioplot.px = ROOT.RooPolynomial("px", "px", x, [-0.1, 0.004]) |
Definition at line 32 of file rf316_llratioplot.py.
| rf316_llratioplot.py = ROOT.RooPolynomial("py", "py", y, [0.1, -0.004]) |
Definition at line 33 of file rf316_llratioplot.py.
| rf316_llratioplot.pz = ROOT.RooPolynomial("pz", "pz", z) |
Definition at line 34 of file rf316_llratioplot.py.
Definition at line 29 of file rf316_llratioplot.py.
| rf316_llratioplot.sigyz = sig.createProjection({x}) |
Definition at line 56 of file rf316_llratioplot.py.
| rf316_llratioplot.totyz = model.createProjection({x}) |
Definition at line 57 of file rf316_llratioplot.py.
| rf316_llratioplot.x = ROOT.RooRealVar("x", "x", -5, 5) |
Definition at line 21 of file rf316_llratioplot.py.
| rf316_llratioplot.y = ROOT.RooRealVar("y", "y", -5, 5) |
Definition at line 22 of file rf316_llratioplot.py.
| rf316_llratioplot.z = ROOT.RooRealVar("z", "z", -5, 5) |
Definition at line 23 of file rf316_llratioplot.py.