Manuel Sanchez Garcia wrote: > > 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 I put your proposal in our new version. The point is most of the time when you have a TBranchObject, you have more than one member to browse. My intention was to avoid too many clicks in the browser. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET