15ROOT.RooTrace.active(
True)
18x = ROOT.RooRealVar(
"x",
"x", -10, 10)
19m = ROOT.RooRealVar(
"m",
"m", 0, -10, 10)
20s = ROOT.RooRealVar(
"s",
"s", 1, -10, 10)
21gauss = ROOT.RooGaussian(
"g",
"g", x, m, s)
27ROOT.RooTrace.verbose(
True)
30p0 = ROOT.RooRealVar(
"p0",
"p0", 0.01, 0.0, 1.0)
31poly = ROOT.RooPolynomial(
"p",
"p", x, [p0])
37f = ROOT.RooRealVar(
"f",
"f", 0.5, 0.0, 1.0)
38model = ROOT.RooAddPdf(
"model",
"model", [gauss, poly], [f])
41ROOT.RooTrace.printObjectCounts()