Hi all,
I’m trying to generate some RooKeysPdfs from simulated toyMC distributions, which are obtained from an original distribution (seed distrib) normalized to unity. In creating the RooKeysPdfs I must mirror the distributions in this way:
because there is a non negligible density on the upper bound of myVar.
When I try to plot all these distributions, including seed distrib, they seem to have the same normalization to unity, but if I try to get the normalization explicitly via
Double_t seed_distrib_norm = (Double_t) seed_distrib->getNorm(RooArgSet(*myVar));
Double_t myRooKey_norm = (Double_t) myRooKey->getNorm(RooArgSet(*myVar));
I correctly obtain unity for the seed distribution, but approximately 50% for all the RooKeysPdfs (a different number for each). If MirrorRight is not inserted I obtain a normalization near to unity, and this does not sound strange to me because I can imagine that, with RooKeysPdf, there is some probability ‘leaking’ out of the edges, but I don’t understand why the normalization is not correct if I mirror the pdfs. I must also say that if I use MirrorBoth the normalization is reduced to approximately 33%.
Thank you,
Federico