# Opening a specific version of a ntuple in a root file

**URL:** <https://root-forum.cern.ch/t/opening-a-specific-version-of-a-ntuple-in-a-root-file/36716>\
**Category:** ROOT\
**Created:** [November 6, 2019, 4:30pm UTC](https://root-forum.cern.ch/t/opening-a-specific-version-of-a-ntuple-in-a-root-file/36716 "2019-11-06T16:30:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wx2017](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/3ec8ea/32.png) [@wx2017](https://root-forum.cern.ch/u/wx2017)\
**Post date:** [November 6, 2019, 4:30pm UTC](https://root-forum.cern.ch/t/opening-a-specific-version-of-a-ntuple-in-a-root-file/36716/1 "2019-11-06T16:30:15Z")

</div>

I have a ROOT files containing different version of the same ntuple as follows. How to open a specific version of the ntuple, e.g. “nt;1”. Any hints are appreciated.

```auto
root [3] TFile f1("o0.root")
(TFile &) Name: o0.root Title: 
root [4] .ls
TFile** o0.root	
 TFile* o0.root	
  KEY: TNtuple	nt;10	
  KEY: TNtuple	nt;9	
  KEY: TNtuple	nt;8	
  KEY: TNtuple	nt;7	
  KEY: TNtuple	nt;6	
  KEY: TNtuple	nt;5	
  KEY: TNtuple	nt;4	
  KEY: TNtuple	nt;3	
  KEY: TNtuple	nt;2	
  KEY: TNtuple	nt;1

```

---

<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:** [November 6, 2019, 5:17pm UTC](https://root-forum.cern.ch/t/opening-a-specific-version-of-a-ntuple-in-a-root-file/36716/2 "2019-11-06T17:17:12Z")

</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:** [November 20, 2019, 5:17pm UTC](https://root-forum.cern.ch/t/opening-a-specific-version-of-a-ntuple-in-a-root-file/36716/3 "2019-11-20T17:17:13Z")

</div>

Closed on November 20, 2019, 5:17pm UTC

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