Greetings,
I find that when I ask a RooHistPdf for the negative log-likelihood (NLL) of a given dataset, that the value is always zero. I do, contrarily, find non-zero NLLs for analytic pdfs.
Attached is a proof-of-concept macro. In it I produce a Gaussian data sample, two pdfs – one a RooHistPdf and one a RooGaussian – from the full data sample, generate some toy MC, and then ask each pdf for the NLL given the toy MC. The RooHistPdf returns an NLL of zero while the RooGaussian returns a non-zero NLL.
I’ve seen an old post where seemingly the same behavior is afoot:
but the thread appears to have stagnated.
Is there something strange going on here or do I misunderstand something conceptually about these objects and methods? Incidentally I’m working with ROOT v5.26/00c on Linux. Any help appreciated,
Jake
histpdfexample.C (1.04 KB)