TDirectoryFile

Dear all,
I have a root file which contains many TDirectoryFile objects. However I need only one of these.
How to save or write just the TDirectoryFile I need in an other new root file?

Thanks a lot in advance
Raffaello

Hi,

I am not sure what you mean. When writing them you should not call Write on the directory objects (they will be saved properly when you call Write on the TFile object (i.e. the top level directory)), consequently there should only be one ‘version/revision’ of the directory object in the file.

Cheers,
Philippe.