TTreeReader with TChain/TFileCollection

Hello

I would like to use TTreeReader with a TChain of many root files but I have not found the way of doing it, is this possible? Do i need to use a TFileCollection instead?

Thank you very much in advance!
Y.

Hi,

When creating the TTreeReader object, just pass the address of the chain:TTreeReader reader(&chain)

Cheers,
Philippe.

Thank you! Works perfectly

Y.