Get bin content from bin label

Dear expert,

I have a histogram whose x-axis is labelled with run number, example below.
How do I get the bin content with the run number information? e.g hist.GetBinContentWithLabel(“34885”)

Thanks for the help!

_ROOT Version: 6.14.08
_Platform: lxplus
Compiler: Not Provided

Something like


Works gracefully, thanks!

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