Likelihood function

Similar to this closed post https://root-forum.cern.ch/t/likelihood-function-from-pdfs/24159

How can I extract from Roofit the likelihood function that is being maximised ?

I think @moneta can help you.

Hi,

If you want the likelihood function you should call instead of RooAbsPdf::fitTo(…) the function RooAbsPdf::createNLL(…) with the same arguments.
createNLL will return for you the likelihood function as a RooAbsReal object.
See https://root.cern.ch/doc/master/classRooAbsPdf.html#a536396deee60ae88762b306af45ec399

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