I’m trying to perform an extended likelihood fit with RooFit, in which I manually add the Poisson term to the likelihood. (Eventually I’d like to better control this term.) For only one fit component, I managed to reproduce the result obtained by the builtin Extended() mechanism. But for two components it fails. Does anybody have an idea why?
The attached code runs standalone in pyroot and demonstrates both examples.