# Relation of the two trees in one root file

**URL:** <https://root-forum.cern.ch/t/relation-of-the-two-trees-in-one-root-file/34999>\
**Category:** Newbie\
**Tags:** tree\
**Created:** [July 4, 2019, 9:48am UTC](https://root-forum.cern.ch/t/relation-of-the-two-trees-in-one-root-file/34999 "2019-07-04T09:48:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zjw](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/dec6dc/32.png) [@zjw](https://root-forum.cern.ch/u/zjw)\
**Post date:** [July 4, 2019, 9:48am UTC](https://root-forum.cern.ch/t/relation-of-the-two-trees-in-one-root-file/34999/1 "2019-07-04T09:48:23Z")

</div>

Dear ROOT users,  
My question is about the two trees (i.e., 2 tree and 1 tree in the image below) in one root file.

![image](https://root-forum.cern.ch/uploads/default/original/3X/b/0/b097f7dec6d8e0ae79bf91139834f9761c1d3951.png)  
What is the relation between them?  
I have checked the data, they seem to contain the same things.  
Then why there are two of them?  
Thanks.

regards,  
zjw

---

<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:** [July 4, 2019, 9:57am UTC](https://root-forum.cern.ch/t/relation-of-the-two-trees-in-one-root-file/34999/2 "2019-07-04T09:57:26Z")

</div>

> [@Aux;1 aux;2 aux3;](https://root-forum.cern.ch/t/aux-1-aux-2-aux3/13345/2):
>
> Search for “cycle” and/or “namecycle”, for example in: In a Nutshell: [Input and Output](https://root.cern.ch/d/input-and-output) . ROOT User’s Guide: [Input/Output](https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#inputoutput) : [Retrieving Objects from Disk](https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#retrieving-objects-from-disk) , [Subdirectories and Navigation](https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#subdirectories-and-navigation) . Just for reference: [some additional notes about GetObject, Get, FindObjectAny, FindKeyAny, ReadObj, ReadObjAny](https://root-forum.cern.ch/t/broken-tdirectoryfile-findobjectany-and-tdirectoryfile-findkeyany/20943/16) .

---

<div class="post-metadata">

**Author:** ![zjw](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/dec6dc/32.png) [@zjw](https://root-forum.cern.ch/u/zjw)\
**Post date:** [July 5, 2019, 3:43am UTC](https://root-forum.cern.ch/t/relation-of-the-two-trees-in-one-root-file/34999/3 "2019-07-05T03:43:17Z")

</div>

Thanks. I have looked the User guide. Just want to confirm one thing: Is that the one with the highest cycle number always the right version?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [July 9, 2019, 6:03pm UTC](https://root-forum.cern.ch/t/relation-of-the-two-trees-in-one-root-file/34999/4 "2019-07-09T18:03:19Z")

</div>

> [@zjw](#):
>
> Is that the one with the highest cycle number always the right version?

Yes, but typically you can just omit the namecycle and ROOT will pick the right one for you.

Cheers,  
Enrico
