RooKeysPdf integral always 1

Hi,

(Firstly: I am using ROOT v5.28.)

I am attempting to numerically integrate a subrange of a RooKeysPdf that was initially created from a weighted RooDataSet. I’m finding that regardless of the range selected, the integral returned is always 1.

The opposite problem occurs when the KeysPdf is part of a RooAddPdf; the createIntegral method seems to ‘miss’ the KeysPdf contribution and greatly underestimate the total.

I’ve tried a couple of different integration methods and the same thing always happens.

I’ve seen that this problem was reported a while ago ([url]Integral of a subpart of a pdf The strange thing is that when I try Wouter’s example in that link it works fine. Why could this be occurring? Is there a way to output some diagnostic messages?

Thanks,
Chris