Hi, I have several different trees that I want to analyze at once. Rather than add the branches together and rewrite the tree, I have done the AddFriend thing and can for instance tree->Draw("var from tree 1":"var from tree 2"...just like in the manual. But I want to use MakeClass to a real analysis. Unfortunately, tree->MakeClass("mycode") only produces a .h file with the stuff from the original tree in it, and nothing from any of the friends. To be specific, I'm doing something like: TFile *f=new TFile("ALTR.root"); TTree *t1 = (TTree*) f->Get("theStuff"); t1.AddFriend("t2 = theStuff","BEAS.root"); t1.AddFriend("t3 = theStuff","BRCD.root"); t1->MakeClass("mycode") What can I do to get a .h with all friend's variables included? - John
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET