# Histograms in TBrowser?

**URL:** <https://root-forum.cern.ch/t/histograms-in-tbrowser/13604>\
**Category:** ROOT\
**Created:** [January 13, 2012, 4:57pm UTC](https://root-forum.cern.ch/t/histograms-in-tbrowser/13604 "2012-01-13T16:57:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hobbybastler](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/4af34b/32.png) [@Hobbybastler](https://root-forum.cern.ch/u/Hobbybastler)\
**Post date:** [January 13, 2012, 4:57pm UTC](https://root-forum.cern.ch/t/histograms-in-tbrowser/13604/1 "2012-01-13T16:57:29Z")

</div>

Hi  
i have a tree where one branch holds a signal of type

```auto
Double_t signal[1000];
```

When i open the tree in a TBrowser and double-click this branch i get a histogram containing the values from all entries (i.e. number of entries in the tree \* 1000). Is there a convenient way of getting the histogram for a single entry (i.e. signal[i] is content of bin i)?  
Also, sometimes when the Branch holds a single value, e.g.

```auto
Double_t amp;
```

I want to have a graph/histogram with the eventnumber on the y-axis.  
Is there any method that i could override (e.g. in TBranch) to add my custom way of creating the histogram that is shown on double-click in the TBrowser?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [February 1, 2012, 8:05am UTC](https://root-forum.cern.ch/t/histograms-in-tbrowser/13604/2 "2012-02-01T08:05:04Z")

</div>

Hi,

First of all, sorry for the late reply… 😊  
Then, the default action for double-clicks in the browser are defined in the $ROOTSYS/etc/root.mimes file. For example:`[root/tleaf]
pattern = TLeaf*
icon = leaf_s.xpm leaf_t.xpm
action = ->Browse()
`  
So you could try to change the “action” value and call another (your own) method…

Cheers, Bertrand.
