Re: Need help with TTree::Print() output

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Apr 17 1998 - 12:18:01 MEST


Manuel Sanchez Garcia wrote:
> 
> Hi Rooters,
> 
>     The problem is the following:
> 
>    I am creating a TTree with many branches, most of them added by hand
> using TBranch::GetListOfBranches()->Add(...), once the tree is created i
> fill it with some data.
> 
>     Then i've used TTree::Print() for debugging; in the output of the
> tree and i get some branches with "Total size=0" and "Baskets=0", so i
> thought the data were not stored. However if i do a histogram (with
> TTree::Draw()) the data are there and they seem to be right (i get the
> expected histogram...)
> 
>     Am i missunderstunding the info given by TTree::Print()?, if not,
> What do you think the problem can be?
> 

The result is correct. It is simply a convention.
In case the number of baskets is 0, the total size does not include
the current buffer in memory.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET