"GetBinContents" function for RooHist?

How can I take a histogram of the values of a roohist histogram. I have:

RooHist* pull_distrubution;

pull_distrubution = fit_frame->pullHist();

which works but now I would like to take a histogram of the bincontents of “pull_distrubution”.

I have been looking for a way to do this and could not find a way to access the bin contents of a roohist. Is their a “GetBinContents” function for RooHist?

I was able to do this using the GetHistogram() function

EDIT: I thought doing:


was working but it keeps returning 0 even though the roohist pull_distrubution is non-zero.