# Chain tree entry id access in Draw()

**URL:** <https://root-forum.cern.ch/t/chain-tree-entry-id-access-in-draw/4677>\
**Category:** ROOT\
**Created:** [April 18, 2007, 2:36pm UTC](https://root-forum.cern.ch/t/chain-tree-entry-id-access-in-draw/4677 "2007-04-18T14:36:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![valeri](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/bbce88/32.png) [@valeri](https://root-forum.cern.ch/u/valeri)\
**Post date:** [April 18, 2007, 2:36pm UTC](https://root-forum.cern.ch/t/chain-tree-entry-id-access-in-draw/4677/1 "2007-04-18T14:36:21Z")

</div>

Hi rooters,

If I have N trees in the chain and like to have the access to tree ID from the chain.Draw() is it possible?

For example: from the TTree:Draw function I can access tree entry as: tree.Draw(“Entry$”)  
in case of chain it plots the entry number for each tree as well.

In case of chain it could be nice to have 2 more options - smth like:  
chain.Draw(“ChainEntry$”) - for the cumulative entry number in the chain  
and  
chain.Draw(“TreeEntry$”) - to access the tree ID (from 1 to N in my example).

Regards,  
Valeri Tioukov

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [April 25, 2007, 6:49pm UTC](https://root-forum.cern.ch/t/chain-tree-entry-id-access-in-draw/4677/2 "2007-04-25T18:49:13Z")

</div>

Hi,

We are planning on adding a new feature that will give you access no only to these value but also to all the information from the underlying tree. We will let you know as soon as it is available.

Cheers,  
Philippe

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [October 10, 2024, 3:23pm UTC](https://root-forum.cern.ch/t/chain-tree-entry-id-access-in-draw/4677/3 "2024-10-10T15:23:58Z")

</div>

This was added under the spelling `LocalEntry$` vs `Entry$` (for the tree and chain entries respectively)
