22t = ROOT.RooRealVar(
"t",
"t", -10, 30)
25ml = ROOT.RooRealVar(
"ml",
"mean landau", 5.0, -20, 20)
26sl = ROOT.RooRealVar(
"sl",
"sigma landau", 1, 0.1, 10)
27landau = ROOT.RooLandau(
"lx",
"lx", t, ml, sl)
30mg = ROOT.RooRealVar(
"mg",
"mg", 0)
31sg = ROOT.RooRealVar(
"sg",
"sg", 2, 0.1, 10)
32gauss = ROOT.RooGaussian(
"gauss",
"gauss", t, mg, sg)
38t.setBins(10000,
"cache")
41lxg = ROOT.RooFFTConvPdf(
"lxg",
"landau (X) gauss", t, landau, gauss)
47data = lxg.generate({t}, 10000)
53frame = t.frame(Title=
"landau (x) gauss convolution")
56landau.plotOn(frame, LineStyle=
"--")
59c = ROOT.TCanvas(
"rf208_convolution",
"rf208_convolution", 600, 600)
60ROOT.gPad.SetLeftMargin(0.15)
61frame.GetYaxis().SetTitleOffset(1.4)
64c.SaveAs(
"rf208_convolution.png")