Parallel TTree->Fill()

Hi,
I would like to ask for your help on the following design issue:
In a multithreaded (compiled) programme on Linux, is it possible for two threads to open two root TFiles, create TTree in each of the files and call TTree->Fill()?
Stated differently:
Does, in principle, the internal implementation of ROOT allow for parallel calls to TTree::Fill(), TFile::Write(), with the assumption that all non-ROOT variables are confined to the thread scope ?
Thank you.
Marcin

1 Like