MakeClass function for A tree and its Friend Tree

From: liang <zhijun.liang_at_cern.ch>
Date: Thu, 29 Nov 2007 15:42:30 +0100


Dear ROOT Experts :
I met some problem in using TTree MakeClass function . Could you help me ? What I want is to use MakeClass function for one tree and its Friend Tree to Generate a C file .
so that I can use the variable in its Friend Tree in the C file as well . for example ,( tree1.root and tree2.root is in root tutorial directory .)
"""

{
TFile f("tree2.root");
t2->AddFriend("t1","tree1.root");
t2->MakeClass("combinetree");
}
"""

But I can just only get the variable in tree2.root in combinetree.h in this way ,
So how can I Generate C file for the Friend Tree ?

Many Thanks
Best regards
Zhijun Received on Thu Nov 29 2007 - 15:47:25 CET

This archive was generated by hypermail 2.2.0 : Fri Nov 30 2007 - 23:50:02 CET