Get bin number corresponding to value

I have

TH1 * h = new TH1F(“h”, “h”, 5, 0.0, 5.0);

In case I am going to fill a value 1.1, how can I know which bin number this value belongs to?

Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

1 Like

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