Extracting the pdf shape from fit as TH1

Hi

I am fitting my distribution with a landau function, which works great in the tails that are not described well by my model. So my question is if it is possible to extract the pdf obtained from the fit as a new TH1? The idea is that the bulk is obtained from MC, whereas the tails from a functional form from the fit - but for that, I would need to have the fit shape extracted as TH1 or, something like binContent.

thanks

You could create an empty histogram and then apply TH1::Add(TF1 *f, …) and / or TH1::Eval(TF1 *f, …) methods.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.