moving a TDirectory from one TFile to another

From: stefan kluth (skluth@mh1.lbl.gov)
Date: Tue Nov 24 1998 - 00:22:53 MET


Hello,

I am trying to move a TDirectory (and everything in it, including TTrees)
from one TFile to another, but without success. I naivly used
TDirectory::SetMother( ... ) to change the current file of this TDirectory
to the new file (in "/" of the old file). 

I guess I also have to take care of other bookkeeping items, but I am sure
what else is involved. 

Did anybody try something like this and could provide me with some example
code? 

Or does anybody have more insight in the workings of TFile/TDirectory to
give me a few hints on how to do this?

cheers, Stefan

---Stefan Kluth---------------Lynen Fellow----------------|\--|\-------
-  LBNL, MS 50A 2160       -  phone:  +1 510 495 2376  -  |/  |/      -
-  1 Cyclotron Rd.         -  fax:    +1 510 495 2957  -  |\/\|\/\|'  -
---Berkeley, CA94720, USA-----e-mail: SKluth@lbl.gov------|/\/|/\/|----



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