ROOT Version: 6.22/08 Platform: Ubuntu 20.04
Dear experts,
I found the number obtained from “h->GetBin()” is not equal to my setting bin number.
As shown in the attachment, the bin value is 40 from GetBin() while I set 5*5 bins.
It’s strange and I don’t the reason, could you please help me check it?
Thank you very much. rr.C (308 Bytes)
(you had the last loop starting from 1 instead of 0), and made the following picture explaining the bin numbering. Note there are underflows/overflows for each row, which increase the number of bins significantly: