Re: SetFile and recursivity

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Nov 17 1998 - 00:24:17 MET


Manuel Sanchez wrote:
> 
> Hello ROOT,
> 
> I've observed that the function TBranch::SetFile() is not recursive (it
> doesn't call the SetFile() function for its subbranches...). Is there
> any reason for that?
> 
> Recursivity would make it easier to use SetFile on a set of branches.
> Let's say for example i have my raw data in a TBranchClones and i want
> all this data in a separate file. If SetFile() is recursive i just need
> to call it for the TBranchClones. Maybe the recursivity should be
> optional?; e.g. using
> TBranch::SetFile(Text_t fname,Bool_t recursive=kFALSE);
> 
> Regards,
> Manuel

Hi Manuel,
I do not agree that TBranch::SetFile should be recursive.
Diverting a branch to a file is an important decision that requires
some thinking. I do not want to get complaints from users that
suddenly discover 300 new files in their directory because they
did not realize that SetFile ws recursive.
Obviously this matter can be debated.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:39 MET