Problem with Template fit

:frowning: I have a root file counting 2 histogrmas(each representing a pdf), I d like to fit another histogram (and get the fitting parameters), which I know is a linear combinations of these 2, but I can’t get the point on how to do that.

Hi,

You can try to do something similar to this tutorial

root.cern.ch/doc/master/fithist_8C.html

Best Regards

Lorenzo