Hi,
So MakeClass doesn't recognize friends. (I'll spare you my list of
jokes that work with that theme...)
In that case, is there a good way to make several Trees into one Tree?
It looks like I could load both files, "Get" both trees (tree1 and
tree2), do a
TBranch *newbranch = tree1->Branch( ch_ptr, "myclass", &myclass,
bufsize, 3);
just like when I made the original trees. So now tree1 has two
branches, one full, one empty. Then, uh, I dunno, how about,
newbranch->SetAddress( &(tree2->GetBranch("mybranch_name")) );
...and then write tree1 to a file. Will this work? I see that there is
no CloneBranch or similar.
- John
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET