Dear experts,
I am trying to plot the likelihood function from a simultaneous fit done in different ranges of the observables. The plot I obtain, however, shows the minimum at a different value than that found in the minimisation. Investigating this, I narrowed it down to a difference between a NLL variable created with and without an specified Range:
RooAbsReal *nll = model.createNLL(*dataset);
vs
RooAbsReal *nllrange = model.createNLL(*dataset, RooFit::Range(“fitrange”));
even if “fitrange” is the whole range of the observable x. Running the attached code, for example, I get the following likelihood scan.
Is this behaviour expected? I am using ROOT 6.14/04.
Many thanks in advance.
Best,
Paula
NLLScanwithRange.pdf (13.4 KB)
plotLikelihoodFitRange.cxx (2.2 KB)