I’m sorry for the repeat of what is probably an oft asked question, but I keep finding different answers that don’t quite fit what I’m asking

If I define just a random PDF in RooFit, how do I access the values of the PDF? I understand that the values of the PDF at a given point are innately linked to the integral of the pdf which is left purposefully undefined, but if I wanted those values for a given integral value (unity or 1 is the obvious example), how would I go about getting the value?

I’ve seen one possible solution is plotting it, getting the curve, and then just evaluating the RooCurve at a given point, but this seems unnecessary if I’m just checking the value of a maximum or minimum. For the sake of having an example, I’ll post it here.

ForumPost.C (615 Bytes)

Thanks for the help.