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------|/\/|/\/|----