15ROOT.RooTrace.active(ROOT.kTRUE)
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(ROOT.kTRUE)
30p0 = ROOT.RooRealVar(
"p0",
"p0", 0.01, 0., 1.)
31poly = ROOT.RooPolynomial(
"p",
"p", x, ROOT.RooArgList(p0))
37f = ROOT.RooRealVar(
"f",
"f", 0.5, 0., 1.)
38model = ROOT.RooAddPdf(
"model",
"model", ROOT.RooArgList(
39 gauss, poly), ROOT.RooArgList(f))
42ROOT.RooTrace.printObjectCounts()