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,
Ramin

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

Hello,

You should first call in your program:

ROOT::EnableThreadSafety();

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,
Ramin