Re: [ROOT] Question about TBranch:: / TTree:: Fill()

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jun 19 2001 - 16:29:51 MEST


Hi Thomas,
This is the expected behaviour. The TBrowser uses internally TTree::Draw.
This function uses the number of entries in the TTree (not the branch)
because in general, you can correlate variables from different branches.
If you call TBranch::Fill, we expect you will call yourself
TBranch::GetEntry.

Rene Brun

On Tue, 19 Jun 2001, Thomas Bretz wrote:

> Hi,
> 
> what's the reason for the following behaviour (BTW: I'm using 2.25/03)
> 
> I have one Tree with one Branch (Splitmode=1). The Branch contains one
> object (a class containing several numbers: Float_t)
> 
> If I fill the data into the branch using:
> TTree::Fill
> I can click on the Leafs (TBrowser) and get some histograms displaying
> the numbers.
> 
> If I fill the data into the branch using:
> TBranch::Fill
> clicking on the leafs doesn't do anything.
> 
> Thanks,
> Thomas.
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:49 MET