# Getting info on histogram composition in saved .root files

**URL:** <https://root-forum.cern.ch/t/getting-info-on-histogram-composition-in-saved-root-files/18153>\
**Category:** ROOT\
**Created:** [September 4, 2014, 1:37pm UTC](https://root-forum.cern.ch/t/getting-info-on-histogram-composition-in-saved-root-files/18153 "2014-09-04T13:37:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olena](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/5fc32e/32.png) [@Olena](https://root-forum.cern.ch/u/Olena)\
**Post date:** [September 4, 2014, 1:37pm UTC](https://root-forum.cern.ch/t/getting-info-on-histogram-composition-in-saved-root-files/18153/1 "2014-09-04T13:37:07Z")

</div>

I have saved a canvas with few histograms as a .root file. Can I see the number of events in each histogram separately now or not? I tried to use Inspect, but it didn’t helped.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [September 4, 2014, 2:24pm UTC](https://root-forum.cern.ch/t/getting-info-on-histogram-composition-in-saved-root-files/18153/2 "2014-09-04T14:24:20Z")

</div>

> [@Opening a histogram from a file](https://root-forum.cern.ch/t/opening-a-histogram-from-a-file/18101/1):
>
> …a cryptically difficult task, apparently. So I’ve managed to find quite a few threads that more or less cover the issue I’m having… but nothing I have tried seems to be working at all. The short of it is, I have two files, each with one histogram inside. Not a tree, just a histogram. I’d like to open them one at a time, and make a copy of each of these histograms in a way that I can perform simple functions such as GetXmin() and GetBinContent(bin). Later of course, there are more complicated …

---

<div class="post-metadata">

**Author:** ![Olena](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/5fc32e/32.png) [@Olena](https://root-forum.cern.ch/u/Olena)\
**Post date:** [September 4, 2014, 2:38pm UTC](https://root-forum.cern.ch/t/getting-info-on-histogram-composition-in-saved-root-files/18153/3 "2014-09-04T14:38:03Z")

</div>

[quote=“Wile E. Coyote”][Opening a histogram from a file](https://root-forum.cern.ch/t/opening-a-histogram-from-a-file/18101/1)  
Thank you for the hint, but is there a way to do it using GUI?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [September 4, 2014, 2:43pm UTC](https://root-forum.cern.ch/t/getting-info-on-histogram-composition-in-saved-root-files/18153/4 "2014-09-04T14:43:59Z")

</div>

Try with a mouse … after you have the canvas drawn, move the mouse cursor to one of the drawn points and click it with the right mouse button -\> a new menu should appear (it’s title will tell you which histogram it is) -\> use the “Dump” or the “Inspect” menu entries.
