Dealing with Tree's with identical Labels

I import some trees using ;

test = TChain(t_name)

and it works flawlessly. The only problem is that if I got more than 1 trees with identical names/labels in the same root file, I get to export them all with the above tchain. As in structure these trees differ as following ;

t_name;1
t_name;2
.
.
and so on…

but I can not indexize/arrayize neither TChain nor the t_name. I am not after a one-liner, any pythonic solution suits me.

[url]Aux;1 aux;2 aux3;

The only section it mentiones cycle/namecycle is about deleting it. I am trying to get it as ;

test = TChain(t_name)[0]
test2 = TChain(t_name)[1]

and so on.

I might recommend using the TFile.Get method. Something like:

trees = {}
f = ROOT.TFile("myfile.root")
for i in range(ncycles):
    trees[i] = f.Get("t_name;%d" % i)

Then you can put them together in a TChain yourself if you need.

I get ;

<ROOT.TObject object at 0x(nil)>

for each iteration of tree[i]. Why?

[url]Plotting Multiple Histograms with Same Title

Thanks.