Dear Rooters,
I would like to fit a RooHistPdf convoluted with a gaussian (using RooFFTConvPdf) to my data. The fit looks quite good, except for high values close to the histogram boundaries, where there is a visible deviation between the fit and the data. A similar problem was reported earlier [1], but changing the minimum/maximum of my variable does not have any effect.
I created a minimal example attached to this post, which will create pseudo data, and a histogram which will be convoluted using an gaussian and fitted to the pseudo data. In the created plots, you will observe the behaviour described above. I would be happy if you have any ideas what is going wrong here.
Cheers,
Knut
[1] Problem with a Breit-Wigner convolved with a Crystal-Ball
tl;dr: Pdf is zero beyond bin boundaries. Define Histogram in increased range, and fit in subrange. See the second attached file.
fitExample_solution.py (1.6 KB)
fitExample.py (1.54 KB)