16h_ExpGauss = ROOT.TH1F(
"h_ExpGauss",
"Exponential convoluted by Gaussian", 100, 0.0, 5.0)
23 ROOT.gRandom.Exp(1.0 / 0.3) + ROOT.gRandom.Gaus(0.0, 3.0)
24 for _
in range(1000000)
28f_conv = ROOT.TF1Convolution(
"expo",
"gaus", -1, 6,
True)
29f_conv.SetRange(-1.0, 6.0)
30f_conv.SetNofPointsFFT(1000)
31f = ROOT.TF1(
"f", f_conv, 0.0, 5.0, f_conv.GetNpar())
32f.SetParameters(1.0, -0.3, 0.0, 1.0)
34c1 = ROOT.TCanvas(
"c1",
"c1", 800, 1000)
39c1.SaveAs(
"fitConvolution.png")