# Read TTree split in the same .root

**URL:** <https://root-forum.cern.ch/t/read-ttree-split-in-the-same-root/27600>\
**Category:** ROOT\
**Tags:** tree\
**Created:** [January 17, 2018, 9:11pm UTC](https://root-forum.cern.ch/t/read-ttree-split-in-the-same-root/27600 "2018-01-17T21:11:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/andre/32/16576_2.png) [@Andre](https://root-forum.cern.ch/u/Andre)\
**Post date:** [January 17, 2018, 9:11pm UTC](https://root-forum.cern.ch/t/read-ttree-split-in-the-same-root/27600/1 "2018-01-17T21:11:36Z")

</div>

Hello, All

I have a file.root created by the pythia8. When I running  
a big number of events, the number of particles is large, right. So, the TTree is split in two. This is happening because that the size limit is reached.

```auto
******************************************************************************
*Tree :T : Tree *
*Entries : 4854205 : Total = 291355263 bytes File Size = 240978077 *
* : : Tree compression factor = 1.11 *
******************************************************************************

```

> the file.root:  
> ![Selection_024](https://root-forum.cern.ch/uploads/default/original/2X/5/520a88fba52f39d0635a02360794826fb418b876.png)

When I read this file.root, the program read just the first `TTree "T,9"` and  
`TTree "T,8"` is not readed.

I’m looking for the command to fix the problem, but I don’t find anything yet.

Someone know how to fix this,

Cheers, Andre

---

<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:** [January 17, 2018, 9:15pm UTC](https://root-forum.cern.ch/t/read-ttree-split-in-the-same-root/27600/2 "2018-01-17T21:15:24Z")

</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:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 31, 2018, 9:15pm UTC](https://root-forum.cern.ch/t/read-ttree-split-in-the-same-root/27600/3 "2018-01-31T21:15:28Z")

</div>

Closed on January 31, 2018, 9:15pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
