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)
24p0 = ROOT.RooRealVar(
"p0",
"p0", 0.01, 0., 1.)
25poly = ROOT.RooPolynomial(
"p",
"p", x, ROOT.RooArgList(p0))
28f = ROOT.RooRealVar(
"f",
"f", 0.5, 0., 1.)
29model = ROOT.RooAddPdf(
"model",
"model", ROOT.RooArgList(
30 gauss, poly), ROOT.RooArgList(f))
32data = model.generate(ROOT.RooArgSet(x), 10)
38ROOT.RooMsgService.instance().
Print()
44ROOT.RooMsgService.instance().
Print()
47ROOT.RooMsgService.instance().getStream(1).addTopic(ROOT.RooFit.Integration)
50igauss = gauss.createIntegral(ROOT.RooArgSet(x))
54ROOT.RooMsgService.instance().
Print()
57ROOT.RooMsgService.instance().getStream(1).removeTopic(ROOT.RooFit.Integration)
63ROOT.RooMsgService.instance().addStream(
67 ROOT.RooFit.ClassName(
"RooGaussian"))
70model.fitTo(data, ROOT.RooFit.Verbose(ROOT.kTRUE))
73ROOT.RooMsgService.instance().reset()
77ROOT.RooMsgService.instance().addStream(
81 ROOT.RooFit.OutputFile(
"rf506_debug.log"))
84model.fitTo(data, ROOT.RooFit.Verbose(ROOT.kTRUE))
87ROOT.RooMsgService.instance().reset()
93ROOT.RooMsgService.instance().addStream(
94 ROOT.RooFit.DEBUG, ROOT.RooFit.Topic(ROOT.RooFit.LinkStateMgmt))
95ROOT.RooMsgService.instance().
Print(
"v")
98gprime = gauss.cloneTree()
102ROOT.RooMsgService.instance().reset()
void Print(std::ostream &os, const OptionType &opt)