# Bug in TH1F when working with lots of events

**URL:** <https://root-forum.cern.ch/t/bug-in-th1f-when-working-with-lots-of-events/48663>\
**Category:** ROOT\
**Created:** [February 5, 2022, 2:08am UTC](https://root-forum.cern.ch/t/bug-in-th1f-when-working-with-lots-of-events/48663 "2022-02-05T02:08:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [February 5, 2022, 6:23am UTC](https://root-forum.cern.ch/t/bug-in-th1f-when-working-with-lots-of-events/48663/2 "2022-02-05T06:23:09Z")

</div>

> [@TH1F : overflow in bin content?](https://root-forum.cern.ch/t/th1f-overflow-in-bin-content/33252):
>
> Hi rooter, I fill a TH1F by the Fill(x) function. I know how many counts I should have in a given bin, but when drawing the histogram (and doing h-\>GetBinContent(i)) the number of counts in that bin are 1.677e7, while they should be ~6e7. Is 1.677e7 the maximum content of a bin in TH1F? I’m using ROOT 6.15 Thank you for your help Cheers Paola

---

_[View the full topic](https://root-forum.cern.ch/t/bug-in-th1f-when-working-with-lots-of-events/48663)._
