Variables | |
| a0 = ROOT.RooRealVar("a0", "a0", 0.5, 0.0, 1.0) | |
| a1 = ROOT.RooRealVar("a1", "a1", 0.2, 0.0, 1.0) | |
| alpha = ROOT.RooRealVar("alpha", "alpha", -1) | |
| bkg = ROOT.RooAddPdf("bkg", "Signal", [bkg1, bkg2], [bkg1frac]) | |
| bkg1 = ROOT.RooChebychev("bkg1", "Background 1", x, [a0, a1]) | |
| bkg1frac = ROOT.RooRealVar("bkg1frac", "fraction of component 1 in background", 0.2, 0.0, 1.0) | |
| bkg2 = ROOT.RooExponential("bkg2", "Background 2", x, alpha) | |
| bkgfrac = ROOT.RooRealVar("bkgfrac", "fraction of background", 0.5, 0.0, 1.0) | |
| cust = ROOT.RooCustomizer(model, "cust") | |
| cust_clone = cust.build(True) | |
| data = ROOT.RooDataSet("data", "data", {x, y}) | |
| mean = ROOT.RooRealVar("mean", "mean of gaussians", 5) | |
| model = ROOT.RooAddPdf("model", "g1+g2+a", [bkg, sig], [bkgfrac]) | |
| model_comps = model.getComponents() | |
| model_obs = model.getObservables(data) | |
| model_params = model.getParameters({x}) | |
| model_params2 = model.getParameters(data) | |
| sig = ROOT.RooGaussian("sig", "Signal component 1", x, mean, sigma) | |
| sig1frac = ROOT.RooRealVar("sig1frac", "fraction of component 1 in signal", 0.8, 0.0, 1.0) | |
| sig2 = ROOT.RooGaussian("sig2", "Signal component 1", x, mean, sigma2) | |
| sigma = ROOT.RooRealVar("sigma", "width of gaussians", 0.5) | |
| sigma2 = ROOT.RooRealVar("sigma2", "width of gaussians", 1) | |
| sigsum = ROOT.RooAddPdf("sigsum", "sig+sig2", [sig, sig2], [sig1frac]) | |
| x = ROOT.RooRealVar("x", "x", 0, 10) | |
| y = ROOT.RooRealVar("y", "y", -10, 10) | |
| rf207_comptools.a0 = ROOT.RooRealVar("a0", "a0", 0.5, 0.0, 1.0) |
Definition at line 28 of file rf207_comptools.py.
| rf207_comptools.a1 = ROOT.RooRealVar("a1", "a1", 0.2, 0.0, 1.0) |
Definition at line 29 of file rf207_comptools.py.
| rf207_comptools.alpha = ROOT.RooRealVar("alpha", "alpha", -1) |
Definition at line 33 of file rf207_comptools.py.
Definition at line 38 of file rf207_comptools.py.
Definition at line 30 of file rf207_comptools.py.
| rf207_comptools.bkg1frac = ROOT.RooRealVar("bkg1frac", "fraction of component 1 in background", 0.2, 0.0, 1.0) |
Definition at line 37 of file rf207_comptools.py.
| rf207_comptools.bkg2 = ROOT.RooExponential("bkg2", "Background 2", x, alpha) |
Definition at line 34 of file rf207_comptools.py.
| rf207_comptools.bkgfrac = ROOT.RooRealVar("bkgfrac", "fraction of background", 0.5, 0.0, 1.0) |
Definition at line 41 of file rf207_comptools.py.
| rf207_comptools.cust = ROOT.RooCustomizer(model, "cust") |
Definition at line 99 of file rf207_comptools.py.
| rf207_comptools.cust_clone = cust.build(True) |
Definition at line 112 of file rf207_comptools.py.
Definition at line 46 of file rf207_comptools.py.
| rf207_comptools.mean = ROOT.RooRealVar("mean", "mean of gaussians", 5) |
Definition at line 23 of file rf207_comptools.py.
Definition at line 42 of file rf207_comptools.py.
| rf207_comptools.model_comps = model.getComponents() |
Definition at line 83 of file rf207_comptools.py.
| rf207_comptools.model_obs = model.getObservables(data) |
Definition at line 61 of file rf207_comptools.py.
| rf207_comptools.model_params = model.getParameters({x}) |
Definition at line 69 of file rf207_comptools.py.
| rf207_comptools.model_params2 = model.getParameters(data) |
Definition at line 75 of file rf207_comptools.py.
Definition at line 25 of file rf207_comptools.py.
| rf207_comptools.sig1frac = ROOT.RooRealVar("sig1frac", "fraction of component 1 in signal", 0.8, 0.0, 1.0) |
Definition at line 95 of file rf207_comptools.py.
Definition at line 92 of file rf207_comptools.py.
| rf207_comptools.sigma = ROOT.RooRealVar("sigma", "width of gaussians", 0.5) |
Definition at line 24 of file rf207_comptools.py.
| rf207_comptools.sigma2 = ROOT.RooRealVar("sigma2", "width of gaussians", 1) |
Definition at line 91 of file rf207_comptools.py.
Definition at line 96 of file rf207_comptools.py.
| rf207_comptools.x = ROOT.RooRealVar("x", "x", 0, 10) |
Definition at line 19 of file rf207_comptools.py.
| rf207_comptools.y = ROOT.RooRealVar("y", "y", -10, 10) |
Definition at line 45 of file rf207_comptools.py.