I have a data-sample that I’m trying to fit with a user defined function. I use log-likelihood fit via the “L” option.
My function depends on x (ofcourse) and one fitting parameter called Lambda. When using my fit-function (based on root.cern.ch/root/html/examples/myfit.C.html) I get my Lambda, which is nice. But what I would like is to get the log-likelihood-value for each Lambda it tries to fit, store this in an ntuple and plot Lambda vs. -Delta-Log-Likelihood. Can this be done?
I have searched the archieves and only found references on how to obtain the log-likelihood-value for the fitted Lambda, but not for the series of Lambdas that it uses during the fitting procedure.