I am having difficulties in finding the dependence of likelihood on model parameters.
The PDF has one observable and 2 parameters. One of the parameters is constrained using conditional PDF. The model is fit do data and I would like to study the dependence of -ln(L) on parameters. The fit gives reasonable results however the plots of -ln(L) vs parameters contradict the fit. The plot of various distributions are attached together with essential parts of the code. The last pad shows RooMinuit contour plot, which contradicts -ln(L) vs mu dependence shown on the first pad. The third pad show -ln(L) vs both parameter with no minimum corresponding to contour plot. The likelihood calculated “manually” shows maximum, however createHistogram does not work and contains -NAN. RooFitResult::numInvalidNLL() returns 0. Would be great if an expert could help solving this issues.
tmp.C (3.53 KB)