SetFile and recursivity

Manuel Sanchez (manuel@fpddv1.usc.es)
Mon, 16 Nov 1998 19:40:16 +0100


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