Re: [ROOT] storing branches in trees ...

From: Volker Hejny (V.Hejny@fz-juelich.de)
Date: Tue Jan 22 2002 - 15:52:25 MET


Hi Rene,

On Mon, Jan 21, 2002 at 02:15:51PM +0000, Rene Brun wrote:
> So, what you want is what TFolder is already doing.
> If you have a folder with the structure that you describe, by doing
>   TTree T("T","/Main")
> you will automatically create a tree with the corresponding branch hierarchy.

Sorry I don't see this. The tree has only top-level branches with names
indicating the structure, e.g. Main.Raw.Det1, Main.Raw.Det2, ...

> There is a difficulty when connecting the tree in read mode. You may want
> to connect multiple files with the same folder structure. What do you do then?
>  - delete the previous folder content and replace it with the new one ?
>  - have a /Main1, /Main2, etc ?
> 
> I would appreciate comments on this issue before attempting an implementation.

I would suggest to put the folder structure in a folder supplied by the
user. If the folders in the tree already exist in the supplied folder,
an error should be given. The objects itself could be placed in an
equivalent directory structure.

Best regards,
Volker

-- 
Dr. Volker Hejny                Tel: 02461/616853                      ** 
Institut f. Kernphysik          Fax: 02461/613930                     **
---------------------------------------------------------------- **  ** ---  
Forschungszentrum Juelich GmbH, D-52425 Juelich                    **



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:39 MET