Re: [ROOT] How do I disable reading of a leaf in a TChain

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Oct 16 2001 - 16:25:17 MEST


Thomas,

We have a SetBranchStatus and not a SetLeafStatus for the following reason.
Suppose a branch "mybranch" containing 2 leaves "leaf1" and 'leaf2"
What would be the result of
   SetLeafStatus("leaf1",1);
   SetLeafStatus("leaf2",0);

As I explained in a previous mail, the I/O is at the branch level.
There is one buffer per branch, not a buffer per leaf.

Rene Brun

Thomas Bretz wrote:
> 
> Hi Rene,
> 
> thanks for the fast and good answer. That was exactly what I was
> missing.
> 
> But let me ask something about it:
> Why do I have to call SetBranchStatus instead of calling something like
> SetLeafStatus. Aren't these variables leaves?
> 
> Thanks again,
> Thomas.



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