Home | News | Documentation | Download

Difference between root 6.18 and 6.22 for RooProdPdf

Dear all,
I have two scripts (Priors_with_bkg.C , Priors.C ) which I join here that both give different results between root 6.18/04 and 6.22/02. You can run them like this:

root [0] .L <macro_name.C>
root [1] <macro_name()>

For the former version the result is as expected:
Poisson_posterior_for_5_nobs_and_0_b_618.pdf (15.8 KB)
While for the more recent version the RooProdPdf “jefPrior_posterior” seems to be zero everywhere:
Poisson_posterior_for_5_nobs_and_0_b_622.pdf (15.3 KB)

This difference in behaviour seems independent of the values of the parameters.

Any help will be greatly appreciated.

Best regards,
Marco Bomben

Hi @bomben! I think there were a lot of changes between 6.18 and 6.22 done by @StephanH (https://root.cern/doc/v620/release-notes.html#roofit-libraries and https://root.cern/doc/v622/release-notes.html#roofit-libraries).

I hope @StephanH maybe can clarify or @moneta will take a look. Thank you in advance!

cc: @Axel

I can indeed reproduce the problem. I have created a GitHub issue

Thank you for reporting this problem


Actually the problem seems to be in computing the function integral for the normalisation.
Adding this line (but requires to have ROOT built with math more support) fixes the problem:



Thank you so much @moneta! Now it works, in 6.18 too.

Marco Bomben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.