Accessing Tree's with same name but different namecycles

I have a test data file having trees like ;

test;1
test;2
.
.
.
test;n

When I define TChain(“test”) it takes the whole set of Trees till number n. I want to be able to access these trees individually. Of course changing the names is an option, but I want to learn how to access namecycles. Couldn’t find any information rather than deleting namecycles on the doc.

I was trying to achieve this with pyroot but I want to implement this portion of my code in c+.