I looking in the documentation how to obtain a PDF from a histogram, but I couldn't find anything, so how can I obtain PDF from a histogram ?, for example to use it in a sum_pdf = zfit.pdf.SumPDF([model1, model2], fracs=frac) in order to perfome a fit, or maybe generate some toys.
Thanks in advance.
PS. I'm looking something similar to RooHistPdf Class from Roofit.
Updated answer
zfit now allows to do binned fits (to be installed currently with
pip install zfit --pre
) as described in the tutorialBasically, starting from the unbinned data or model, you can do:
Old answer
There is currently no out-of-the-box solution for this but work-in-progress.
However, you can simply construct something on your own like: