Multicomponent mean and error

In RooFit, how do we access the error and mean of the overall fit if I have fitted it with multiple PDFs, such as Gaussian, Crystal Ball, and a polynomial, using fractions like fraction and fraction1?

Hello,

I add in the loop @jonas and @moneta .

Cheers,
D

Hi @Vikas_Raj, what do you mean with the “error and mean of the overall fit”? You mean the best-fit parameter values and their uncertainties?

In this case, you can bet them by returning the result of the fit in a RooFitResult object using the Save() command argument for RooAbsPdf::fitTo() as explained in this tutorial:
https://root.cern/doc/master/rf607__fitresult_8C.html

Let us know if you need more information!
Jonas

1 Like

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