RooKeysPdf not working with weights in ROOT v26,v30

Dear Experts,

I am trying to use RooKeysPdf in ROOT v26 (I also tried v30 with the same results), but it doesn’t seem to be able to model the distribution when my sample has weights. Everything works correctly in ROOT v24, with the same exact code.

Here a snippet of the code I use, please let me know if you need more information.

RooDataSet *rds = new RooDataSet("rds","",RooArgSet(m,wgt),"wgt");
...
rds->add(RooArgSet(m,wgt),weight);
...
RooKeysPdf pdf("pdf", "", m, *rds,  RooKeysPdf::NoMirror, 2.0);

Thanks!

Hi Federica,

Let me add in the loop @jonas , our RooFit expert. In the meantme, can you share a minimal reproduer of the issue that we can run ourselves?

Best,
D

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