# How to get bin entries of a bin for histograms(with event weight)?

**URL:** <https://root-forum.cern.ch/t/how-to-get-bin-entries-of-a-bin-for-histograms-with-event-weight/55782>\
**Category:** Newbie\
**Tags:** hist\
**Created:** [July 21, 2023, 7:58am UTC](https://root-forum.cern.ch/t/how-to-get-bin-entries-of-a-bin-for-histograms-with-event-weight/55782 "2023-07-21T07:58:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huiling110](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/35a633/32.png) [@huiling110](https://root-forum.cern.ch/u/huiling110)\
**Post date:** [July 21, 2023, 7:58am UTC](https://root-forum.cern.ch/t/how-to-get-bin-entries-of-a-bin-for-histograms-with-event-weight/55782/1 "2023-07-21T07:58:53Z")

</div>

Dear experts,

Hello!

Is there any method to get the **bin entries for a specific bin**? Assume the histogram is filled with non constant event weight.

Thanks

Cheers,  
Huiling

---

<div class="post-metadata">

**Author:** ![yus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/9fc348/32.png) [@yus](https://root-forum.cern.ch/u/yus)\
**Post date:** [July 21, 2023, 10:39am UTC](https://root-forum.cern.ch/t/how-to-get-bin-entries-of-a-bin-for-histograms-with-event-weight/55782/2 "2023-07-21T10:39:55Z")

</div>

Hi,

if by “bin entries” you mean the numbers that were used to fill up this bin, then the answer is no.
