Re: TFolder vs TDirectory?

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 7 Feb 2011 16:28:44 +0100


TFolder manages a hierrachy of objects in memory. TDirectory is doing it for a file.
You can save the TFolder structure to a directory in a file.

Rene Brun

On 01/02/2011 18:34, Konstantin Olchanski wrote:
> Hi, rooters, while I am in the mood for asking questions - I was always
> puzzled myself and other people ask me about once every year - what is
> the difference between a TFolder and a TDirectory? Why does TFolder exist
> at all - what does it do that TDirectory& etc does not do? When should
> users use TFolder, when should they use TDirectory?
>
> To muddy up the issue, the ROOT user guide has section 10 "Folders and Tasks",
> where it introduces TFolder and shows how it does everything that
> TDirectory already seems to do, then proceeds to confuse the issue with
> some crazy talk about producer and consumer classes and about accessing
> objects using ascii names instead of good old C++ pointers.
>
> The best I can tell, it seems as if some person for reasons unknown did not
> like TDirectory and wrote a replacement called TFolder, complete with
> it's own chapter in the user guide and some beautiful online documentation.
>
> Obviously something more has to be going on here, so what am I missing?
>
Received on Mon Feb 07 2011 - 16:28:50 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 08 2011 - 17:50:02 CET