# Understanding a histogram

**URL:** <https://root-forum.cern.ch/t/understanding-a-histogram/59043>\
**Category:** Newbie\
**Tags:** hist\
**Created:** [April 18, 2024, 3:38am UTC](https://root-forum.cern.ch/t/understanding-a-histogram/59043 "2024-04-18T03:38:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rana](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rana/32/36242_2.png) [@Rana](https://root-forum.cern.ch/u/Rana)\
**Post date:** [April 18, 2024, 3:38am UTC](https://root-forum.cern.ch/t/understanding-a-histogram/59043/1 "2024-04-18T03:38:34Z")

</div>

I am new to this field and I am having a tough time to understand this histogram. I want to understand what Entries, Event number, N\_hits, mean in the attached histogram. Also what does the vertical axis represent (I understand that typically the vertical axis correspond to frequency but here I am not able to connect it to particle collision/interaction ?  
I will be grateful anyone can breakdown the entire scenario.

 ![Screenshot from 2024-04-17 23-36-57](https://root-forum.cern.ch/uploads/default/original/3X/f/c/fc80cee665c664f6a4107967192a7a9cf9bddc69.png)  
 ![Screenshot from 2024-04-17 23-34-23](https://root-forum.cern.ch/uploads/default/original/3X/b/a/baa0f49db2313dcba3e3030f07db72258aa614e2.png)

---

<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:** [April 18, 2024, 7:35am UTC](https://root-forum.cern.ch/t/understanding-a-histogram/59043/2 "2024-04-18T07:35:14Z")

</div>

Welcome to the ROOT forum

It looks like you are producing these two plots from a TTree. Did you create the tree yourself or did you get it from some experimental results ? In the second case you may ask the author(s) of that tree for some help. They will know the meaning of the tree’s variables.

Nevertheless, given the name of your histograms we can guess that the first one represent the number of hits in some “detector”. It looks like almost all the hits are in the first cell (bin). There is a few on the right part. You will see them better if you turn the log scale “on” for the Y axis. In the second histogram it looks like you are making a distribution with the “event number”. Usually this does not give meaningful information as, very likely, it is just the line number in the tree.

---

<div class="post-metadata">

**Author:** ![Rana](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rana/32/36242_2.png) [@Rana](https://root-forum.cern.ch/u/Rana)\
**Post date:** [April 19, 2024, 5:12am UTC](https://root-forum.cern.ch/t/understanding-a-histogram/59043/3 "2024-04-19T05:12:28Z")

</div>

Hi,  
Thanks a lot for explaining.  
No, I didn’t create the tree myself, I found it inside a root file given to me. I am trying to figure out the hits in 300 scintillator planes in a detector.  
Best,  
Rana

---

<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:** [April 22, 2024, 2:15pm UTC](https://root-forum.cern.ch/t/understanding-a-histogram/59043/4 "2024-04-22T14:15:24Z")

</div>

Hi @Rana

May be you can get some help from the people who created this ROOT tree ? They can tell you what the various variables are.
