# Understading meaning of KEY

**URL:** <https://root-forum.cern.ch/t/understading-meaning-of-key/14912>\
**Category:** ROOT\
**Created:** [September 10, 2012, 4:25pm UTC](https://root-forum.cern.ch/t/understading-meaning-of-key/14912 "2012-09-10T16:25:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziosa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ziosa](https://root-forum.cern.ch/u/ziosa)\
**Post date:** [September 10, 2012, 4:25pm UTC](https://root-forum.cern.ch/t/understading-meaning-of-key/14912/1 "2012-09-10T16:25:57Z")

</div>

Dear root expert,  
I would like to ask you if you could clarify the meaning of the KEY word. For example, consider  
KEY: TTree tree;4 tree  
KEY: TTree tree;3 tree

1. Which is the difference between tree;3 and tree;4.
2. Is it true that there could be a difference in the number of events?
3. Why there are 2 KEYs and which one is correct to use?
4. If I want to call such a tree is it correct to use only  
f-\>GetObject(“tree”,tree);  
instead of  
f-\>GetObject(“tree;3”,tree); or f-\>GetObject(“tree;4”,tree); ?
5. Are the same differences valid also for directory? E.G.  
KEY: TDirectoryFile Selection;1  
KEY: TDirectoryFile Selection;2

Thank you very much for helping.  
FR

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [September 10, 2012, 7:40pm UTC](https://root-forum.cern.ch/t/understading-meaning-of-key/14912/2 "2012-09-10T19:40:57Z")

</div>

[url][Aux;1 aux;2 aux3;](https://root-forum.cern.ch/t/aux-1-aux-2-aux3/13345/1)

---

<div class="post-metadata">

**Author:** ![ziosa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ziosa](https://root-forum.cern.ch/u/ziosa)\
**Post date:** [September 12, 2012, 2:06pm UTC](https://root-forum.cern.ch/t/understading-meaning-of-key/14912/3 "2012-09-12T14:06:51Z")

</div>

Thank you very much.  
FR
