Re: [ROOT] Q2: Tree and Histograms

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue May 21 2002 - 19:55:17 MEST


Frederic,

I assume that you want to fill the Tree in a producer process and read it
from another consumer process, itself filling some histograms.
In this case, you must read the Tree header at regular intervals
and still call tree.GetEntries remembering the previous number
of entries to make your loop starting at old_number_of_entries+1

Rene


On Tue, 21 May 2002, Frederic Sarazin wrote:

> Dear Rooters,
> 
> I want to be able to create histograms on line from a Tree structure. In the
> manual, I read it seems that I need Tree->GetEntries() to be able to fill
> my histograms. I guess this is the solution when the Tree is of fixed size. But
> in this case, my tree would be filled continuously by the data stream (I don't
> know how yet), how can I fill continuously my newly created histograms
> without having to specify the number of events to be processed ?
> 
> Thanks,
> 
> Fred
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET