Hi, > > Is it possible to use TTree/TNtuple with multiple threads ? > I think one needs very strong reason to employ so complicate and fragile approach. It would be much better if one will collect the "raw" on-line data with a flat array of C-structure. That can be mapped to share memory easily and pick this array by another thread to fill TTree or what ever one wants. STAR provides a set of classes to manage the "plain" arrays of C-structures (something like well-known PAW memory resident row-wise N-tuples) > For example, one thread is writing/filling data to TTree continuously. > Sometimes later it is required to look at some part of the data in the > Tree. > Is it possible to run safely another thread to get those data from the > Tree > without corrupting Tree; like a producer-consumer ? > > Thanks, > Yun-Ha. > > > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET