Dear Rooters At the beginning of my program I open a file "OldFile.root", which contains many trees, in READ mode, and I create a new file "NewFile.root". Then I do the following: 1. Get one tree from OldFile and add the other trees as friend. 2. Do some calculation with the tree data 3. Create new trees and store these trees in file NewFile.root However, at a later point I want to add one of the new trees, stored in NewFile, as an additional friend to the existing list of tree friends. Sorrowly, the following line: tree->AddFriend(aliasname, "/path/NewFile.root"); or the line tree->AddFriend(aliasname, "NewFile.root"); creates the following error messages: Warning in <TFile::Init>: file /path/NewFile.root has no keys Warning in <TTree::AddFriend>: Unknown Tree alias=treename.exten in file /path/NewFile.root My question is: How can I add a newly created tree to an already existing list of tree friends? Thank you in advance for your help. Best regards Christian _._._._._._._._._._._._._._._._ C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a V.i.e.n.n.a A.u.s.t.r.i.a _._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:15 MET