# Get the whole weight of a histgram

**URL:** <https://root-forum.cern.ch/t/get-the-whole-weight-of-a-histgram/41833>\
**Category:** Newbie\
**Tags:** hist\
**Created:** [October 13, 2020, 12:44am UTC](https://root-forum.cern.ch/t/get-the-whole-weight-of-a-histgram/41833 "2020-10-13T00:44:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11111](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/11111/32/17987_2.png) [@11111](https://root-forum.cern.ch/u/11111)\
**Post date:** [October 13, 2020, 12:44am UTC](https://root-forum.cern.ch/t/get-the-whole-weight-of-a-histgram/41833/1 "2020-10-13T00:44:49Z")

</div>

Using GetEntries(), we can get the whole entries of a hist. Is there a function with which we can get the whole weight of a hist, the sum of each bin’s content? Or we much add them all ?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 13, 2020, 7:15am UTC](https://root-forum.cern.ch/t/get-the-whole-weight-of-a-histgram/41833/2 "2020-10-13T07:15:50Z")

</div>

May be [Integral()](https://root.cern/doc/master/classTH1.html#a919887c7b8431299713ec22e544cc396) is a way.
