Reader multiple files with TTreeReader

Hello everyone,

I am currently using a TTreeReader in order to read some data from a certain file. I was wondering whether it would be possible to read from two files in parallel simultaneously by making use of a TTreeReader.

With kind regards,

_ROOT Version: 6.26/02
_Platform: Ubuntu 22.04.1 LTS
_Compiler: Ubuntu 11.2.0-19ubuntu1


You should first call in your program:


then create two threads, and create a TTreeReader on each of them, each on a different file.

Hello, etejedor.

Thank you very much. I will give it a go.

With kind regards,