Tfile.get() method parameter

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 ids of the histogram, for example.
Thanks.

Try: openFile.ls()

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