# Tfile.get() method parameter

**URL:** <https://root-forum.cern.ch/t/tfile-get-method-parameter/53507>\
**Category:** Newbie\
**Tags:** python\
**Created:** [February 7, 2023, 5:52pm UTC](https://root-forum.cern.ch/t/tfile-get-method-parameter/53507 "2023-02-07T17:52:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MITSUKI000](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/b2d939/32.png) [@MITSUKI000](https://root-forum.cern.ch/u/MITSUKI000)\
**Post date:** [February 7, 2023, 5:52pm UTC](https://root-forum.cern.ch/t/tfile-get-method-parameter/53507/1 "2023-02-07T17:52:17Z")

</div>

```auto
import ROOT as r
outFile = r.TFile("outfile.root", "RECREATE") 
tree = openFile.Get('mini')

```

Hi, I’m confused about this `'mini'` parameter here, also what is the type of `tree`? As far as I know the `Get()` method can extract information according to some `id`s of the histogram, for example.  
Thanks.

---

<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:** [February 7, 2023, 6:36pm UTC](https://root-forum.cern.ch/t/tfile-get-method-parameter/53507/2 "2023-02-07T18:36:19Z")

</div>

Try: `openFile.ls()`

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [February 8, 2023, 2:03pm UTC](https://root-forum.cern.ch/t/tfile-get-method-parameter/53507/3 "2023-02-08T14:03:16Z")

</div>

Hi,

If you are using “RECREATE” option, you always will get empty file.  
Therefore you never can get any object out of such file.  
To be able read something, use “READ” or “UPDATE” option.  
And you can use `ls()` method to see content of your file.

Regards,  
Sergey
