Computing pdf value


what is the recommended way to get the value of a pdf given a set of observables (all with values set to an event’s values)? I am using

RooAbsPdf::getValV(RooArgSet *)

but I have some troubles: if before doing so I generate events with the pdf, the value returned by getValV is different from the one I get if I just define the pdf.

Any hints?


I have tried reproducing your problem, but the value returned by getValV does not change in my case.
Could you please post the snippet of code you are testing or something similar that gives the same erroneous results? Also, it would help to know which ROOT version you are using.