Read TTree in multiple TThreads
Sent: Thu Mar 22, 2012 11:33
I try to fasten the process of reading tree from root files. The reading itself is via recommended TTree::GetEntry function. In each thread I open given root file for reading and then set tree. Then I simply call GetEntry in a loop.
The code is processed in compile mode.
However the reading fails in GetEntry. It seems to me that the function is not thread safe (or the TTree itself). I don’t want to lock/synchronize threads in this step because reading via GetEntry in loop is simply slow and this could not fasten the process.
My question is if calling GetEntry function is thread safe or not.
Joined: Wed Mar 21, 2012 16:21