Variables | |
| a0 = ROOT.RooRealVar("a0", "a0", 0.5, 0.0, 1.0) | |
| a1 = ROOT.RooRealVar("a1", "a1", -0.2, 0.0, 1.0) | |
| bkg = ROOT.RooChebychev("bkg", "Background", x, [a0, a1]) | |
| bkgfrac = ROOT.RooRealVar("bkgfrac", "fraction of background", 0.5, 0.0, 1.0) | |
| c = ROOT.TCanvas("rf201_composite", "rf201_composite", 600, 600) | |
| Components | |
| data = model.generate({x}, 1000) | |
| LineColor | |
| LineStyle | |
| mean = ROOT.RooRealVar("mean", "mean of gaussians", 5) | |
| model = ROOT.RooAddPdf("model", "g1+g2+a", [bkg, sig], [bkgfrac]) | |
| model2 = ROOT.RooAddPdf("model", "g1+g2+a", [bkg, sig1, sig2], [bkgfrac, sig1frac], True) | |
| PrintLevel | |
| sig = ROOT.RooAddPdf("sig", "Signal", [sig1, sig2], [sig1frac]) | |
| sig1 = ROOT.RooGaussian("sig1", "Signal component 1", x, mean, sigma1) | |
| sig1frac = ROOT.RooRealVar("sig1frac", "fraction of component 1 in signal", 0.8, 0.0, 1.0) | |
| sig2 = ROOT.RooGaussian("sig2", "Signal component 2", x, mean, sigma2) | |
| sigma1 = ROOT.RooRealVar("sigma1", "width of gaussians", 0.5) | |
| sigma2 = ROOT.RooRealVar("sigma2", "width of gaussians", 1) | |
| x = ROOT.RooRealVar("x", "x", 0, 10) | |
| xframe = x.frame(Title="Example of composite pdf=(sig1+sig2)+bkg") | |
| rf201_composite.a0 = ROOT.RooRealVar("a0", "a0", 0.5, 0.0, 1.0) |
Definition at line 35 of file rf201_composite.py.
| rf201_composite.a1 = ROOT.RooRealVar("a1", "a1", -0.2, 0.0, 1.0) |
Definition at line 36 of file rf201_composite.py.
Definition at line 37 of file rf201_composite.py.
| rf201_composite.bkgfrac = ROOT.RooRealVar("bkgfrac", "fraction of background", 0.5, 0.0, 1.0) |
Definition at line 52 of file rf201_composite.py.
| rf201_composite.c = ROOT.TCanvas("rf201_composite", "rf201_composite", 600, 600) |
Definition at line 101 of file rf201_composite.py.
| rf201_composite.Components |
Definition at line 70 of file rf201_composite.py.
| rf201_composite.data = model.generate({x}, 1000) |
Definition at line 59 of file rf201_composite.py.
| rf201_composite.LineColor |
Definition at line 96 of file rf201_composite.py.
| rf201_composite.LineStyle |
Definition at line 70 of file rf201_composite.py.
| rf201_composite.mean = ROOT.RooRealVar("mean", "mean of gaussians", 5) |
Definition at line 27 of file rf201_composite.py.
Definition at line 53 of file rf201_composite.py.
| rf201_composite.model2 = ROOT.RooAddPdf("model", "g1+g2+a", [bkg, sig1, sig2], [bkgfrac, sig1frac], True) |
Definition at line 85 of file rf201_composite.py.
| rf201_composite.PrintLevel |
Definition at line 62 of file rf201_composite.py.
Definition at line 46 of file rf201_composite.py.
Definition at line 31 of file rf201_composite.py.
| rf201_composite.sig1frac = ROOT.RooRealVar("sig1frac", "fraction of component 1 in signal", 0.8, 0.0, 1.0) |
Definition at line 45 of file rf201_composite.py.
Definition at line 32 of file rf201_composite.py.
| rf201_composite.sigma1 = ROOT.RooRealVar("sigma1", "width of gaussians", 0.5) |
Definition at line 28 of file rf201_composite.py.
| rf201_composite.sigma2 = ROOT.RooRealVar("sigma2", "width of gaussians", 1) |
Definition at line 29 of file rf201_composite.py.
| rf201_composite.x = ROOT.RooRealVar("x", "x", 0, 10) |
Definition at line 23 of file rf201_composite.py.
Definition at line 65 of file rf201_composite.py.