Getting the x-value in 2D histogram

Hello everyone,

this is a rather simple question I guess. I have a two dimensional histogram given. Basically, all I want to do is to get, for a given y bin, the corresponding x bin.

Screenshot 2022-05-23 at 18.14.06

However, I don’t think options like GetBinContent are sufficient… Any ideas?

Did you try?
https://root.cern/doc/master/classTH2.html
search for GetBinContent.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.