Logo ROOT  
Reference Guide
rf207_comptools Namespace Reference

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)

Variable Documentation

◆ a0

rf207_comptools.a0 = ROOT.RooRealVar("a0", "a0", 0.5, 0.0, 1.0)

Definition at line 28 of file rf207_comptools.py.

◆ a1

rf207_comptools.a1 = ROOT.RooRealVar("a1", "a1", 0.2, 0.0, 1.0)

Definition at line 29 of file rf207_comptools.py.

◆ alpha

rf207_comptools.alpha = ROOT.RooRealVar("alpha", "alpha", -1)

Definition at line 33 of file rf207_comptools.py.

◆ bkg

rf207_comptools.bkg = ROOT.RooAddPdf("bkg", "Signal", [bkg1, bkg2], [bkg1frac])

Definition at line 38 of file rf207_comptools.py.

◆ bkg1

rf207_comptools.bkg1 = ROOT.RooChebychev("bkg1", "Background 1", x, [a0, a1])

Definition at line 30 of file rf207_comptools.py.

◆ bkg1frac

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.

◆ bkg2

rf207_comptools.bkg2 = ROOT.RooExponential("bkg2", "Background 2", x, alpha)

Definition at line 34 of file rf207_comptools.py.

◆ bkgfrac

rf207_comptools.bkgfrac = ROOT.RooRealVar("bkgfrac", "fraction of background", 0.5, 0.0, 1.0)

Definition at line 41 of file rf207_comptools.py.

◆ cust

rf207_comptools.cust = ROOT.RooCustomizer(model, "cust")

Definition at line 99 of file rf207_comptools.py.

◆ cust_clone

rf207_comptools.cust_clone = cust.build(True)

Definition at line 112 of file rf207_comptools.py.

◆ data

rf207_comptools.data = ROOT.RooDataSet("data", "data", {x, y})

Definition at line 46 of file rf207_comptools.py.

◆ mean

rf207_comptools.mean = ROOT.RooRealVar("mean", "mean of gaussians", 5)

Definition at line 23 of file rf207_comptools.py.

◆ model

rf207_comptools.model = ROOT.RooAddPdf("model", "g1+g2+a", [bkg, sig], [bkgfrac])

Definition at line 42 of file rf207_comptools.py.

◆ model_comps

rf207_comptools.model_comps = model.getComponents()

Definition at line 83 of file rf207_comptools.py.

◆ model_obs

rf207_comptools.model_obs = model.getObservables(data)

Definition at line 61 of file rf207_comptools.py.

◆ model_params

rf207_comptools.model_params = model.getParameters({x})

Definition at line 69 of file rf207_comptools.py.

◆ model_params2

rf207_comptools.model_params2 = model.getParameters(data)

Definition at line 75 of file rf207_comptools.py.

◆ sig

rf207_comptools.sig = ROOT.RooGaussian("sig", "Signal component 1", x, mean, sigma)

Definition at line 25 of file rf207_comptools.py.

◆ sig1frac

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.

◆ sig2

rf207_comptools.sig2 = ROOT.RooGaussian("sig2", "Signal component 1", x, mean, sigma2)

Definition at line 92 of file rf207_comptools.py.

◆ sigma

rf207_comptools.sigma = ROOT.RooRealVar("sigma", "width of gaussians", 0.5)

Definition at line 24 of file rf207_comptools.py.

◆ sigma2

rf207_comptools.sigma2 = ROOT.RooRealVar("sigma2", "width of gaussians", 1)

Definition at line 91 of file rf207_comptools.py.

◆ sigsum

rf207_comptools.sigsum = ROOT.RooAddPdf("sigsum", "sig+sig2", [sig, sig2], [sig1frac])

Definition at line 96 of file rf207_comptools.py.

◆ x

rf207_comptools.x = ROOT.RooRealVar("x", "x", 0, 10)

Definition at line 19 of file rf207_comptools.py.

◆ y

rf207_comptools.y = ROOT.RooRealVar("y", "y", -10, 10)

Definition at line 45 of file rf207_comptools.py.