Re: [ROOT] filling selected branches of a tree.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Oct 14 2004 - 12:19:31 MEST


Hi Jan,

You can call branch->Fill, but at the same time you must also update the number
of entries in the Tree via tree->SetEntries. See
http://root.cern.ch/root/htmldoc/TTree.html#TTree:SetEntries

Rene Brun


Jan CONRAD wrote:
> 
> Hi,
> 
>  I have a seemingly simple problem. I have a tree containing two branches
> and I will only fill one of them ignoring the other branch. If I use only
> branch->fill it doesn't update the tree (tree has zero entries, file
> contains no data).
> 
> If I use tree->Fill it seems to try to fill the whole tree.
> 
> So my solution would be to try to use tree->Fill but to force it to ignore
> one of the branches.
> 
> Is this possible ? Any other suggestions ? Should the branch->Fill work ?
> 
> Thanks in advance,
> 
> Jan
> 
> --
> 
> ------------------------------------------------------------
> Jan CONRAD, PH/EP Dpt., CERN, CH-1211 Geneva 23, Switzerland
> +41 22 767 0182 (9480) (fax), Office 160-1-0012,
> ------------------------------------------------------------



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET