I try to fit some di-electron mass spectra using a modified crystal ball function [1] in RooFit. The fit results look ok in most of the case, but some times it gives me a strange tail at high mass (failing probe) [2].
I passed the fitted parameter from the strange looking fit to a TF1 function[3], but I cannot see the tail [4].
Moreover, the graph of the function defined in RooFit looks smooth, while the one defined in TF1 is not.
My question is whether the tail I saw when fitting using RooFit is expected or is it a bug somewhere in my code.
Thank you for your reply.
Yes, those function are the same (only different by a scale factor). But it turns out the red function (for failing probe) has a strange tail on the right.
By the way, I uploaded the wrong (red) plot in my previous post. Please check again for the correct one.
Hi,
If you can post the full RooFit running code making the wrong plot (missing also the header file of the class) I could help you find the problem you are having
Hi,
I am sorry but from what you post is difficult to reproduce this. It is better you send me a RooWorkspace and a macro reading from the workspace and producing that plot. Something small and simple that can be used to reproduce the results.