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!