When TBranchObject is a folder?

Manuel Sanchez Garcia (manuel@fpddv1.usc.es)
Mon, 09 Mar 1998 13:04:04 +0100


Hello All,

I have seen in the code of TBranchObject::IsFolder that it returns
true only if the number of subbranches is greater than 1.

Is there any reason for it to return kFALSE when the number of
branches is equal to 1?

I mean, why not:

Bool_t TBranchObject::IsFolder()
{
//*-*-*-*-*Return TRUE if more than one leaf, FALSE otherwise*-*
//*-* ==================================================

Int_t nbranches = fBranches.GetEntriesFast();
if (nbranches >= 1) return kTRUE;
else return kFALSE;
}

instead of:

Bool_t TBranchObject::IsFolder()
{
//*-*-*-*-*Return TRUE if more than one leaf, FALSE otherwise*-*
//*-* ==================================================

Int_t nbranches = fBranches.GetEntriesFast();
if (nbranches > 1) return kTRUE;
else return kFALSE;
}

I would like being able to browse a branch with an only subbranch in it.

Greetings, Manuel Sanchez