16ROOT.RooTrace.active(ROOT.kTRUE)
19x = ROOT.RooRealVar(
"x",
"x", -10, 10)
20m = ROOT.RooRealVar(
"m",
"m", 0, -10, 10)
21s = ROOT.RooRealVar(
"s",
"s", 1, -10, 10)
22gauss = ROOT.RooGaussian(
"g",
"g", x, m, s)
28ROOT.RooTrace.verbose(ROOT.kTRUE)
31p0 = ROOT.RooRealVar(
"p0",
"p0", 0.01, 0., 1.)
32poly = ROOT.RooPolynomial(
"p",
"p", x, ROOT.RooArgList(p0))
38f = ROOT.RooRealVar(
"f",
"f", 0.5, 0., 1.)
39model = ROOT.RooAddPdf(
"model",
"model", ROOT.RooArgList(
40 gauss, poly), ROOT.RooArgList(f))
43ROOT.RooTrace.printObjectCounts()