Variables | |
| c = ROOT.TCanvas("rf804_mcstudy_constr", "rf804_mcstudy_constr", 1200, 400) | |
| f = ROOT.RooRealVar("f", "f", 0.4, 0.0, 1.0) | |
| fconstraint = ROOT.RooGaussian("fconstraint", "fconstraint", f, 0.7, 0.1) | |
| frame1 = mcs.plotParam(f, Bins=40) | |
| frame2 = mcs.plotPull(f, Bins=40, FitGauss=True) | |
| g = ROOT.RooGaussian("g", "g", x, m, s) | |
| h_f_gen = mcs.fitParDataSet().createHistogram("f_gen", AutoBinning=40) | |
| m = ROOT.RooRealVar("m", "m", 0, -10, 10) | |
| mcs = ROOT.RooMCStudy(sumc, {x}, Constrain={f}, Silence=True, Binned=True, FitOptions={"PrintLevel": -1}) | |
| p = ROOT.RooPolynomial("p", "p", x) | |
| s = ROOT.RooRealVar("s", "s", 2, 0.1, 10) | |
| sum = ROOT.RooAddPdf("sum", "sum", [g, p], [f]) | |
| sumc = ROOT.RooProdPdf("sumc", "sum with constraint", [sum, fconstraint]) | |
| x = ROOT.RooRealVar("x", "x", -10, 10) | |
| rf804_mcstudy_constr.c = ROOT.TCanvas("rf804_mcstudy_constr", "rf804_mcstudy_constr", 1200, 400) |
Definition at line 65 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.f = ROOT.RooRealVar("f", "f", 0.4, 0.0, 1.0) |
Definition at line 34 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.fconstraint = ROOT.RooGaussian("fconstraint", "fconstraint", f, 0.7, 0.1) |
Definition at line 38 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.frame1 = mcs.plotParam(f, Bins=40) |
Definition at line 58 of file rf804_mcstudy_constr.py.
Definition at line 62 of file rf804_mcstudy_constr.py.
Definition at line 28 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.h_f_gen = mcs.fitParDataSet().createHistogram("f_gen", AutoBinning=40) |
Definition at line 55 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.m = ROOT.RooRealVar("m", "m", 0, -10, 10) |
Definition at line 26 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.mcs = ROOT.RooMCStudy(sumc, {x}, Constrain={f}, Silence=True, Binned=True, FitOptions={"PrintLevel": -1}) |
Definition at line 47 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.p = ROOT.RooPolynomial("p", "p", x) |
Definition at line 31 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.s = ROOT.RooRealVar("s", "s", 2, 0.1, 10) |
Definition at line 27 of file rf804_mcstudy_constr.py.
Definition at line 35 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.sumc = ROOT.RooProdPdf("sumc", "sum with constraint", [sum, fconstraint]) |
Definition at line 41 of file rf804_mcstudy_constr.py.
| rf804_mcstudy_constr.x = ROOT.RooRealVar("x", "x", -10, 10) |
Definition at line 23 of file rf804_mcstudy_constr.py.