Re: [ROOT] TTree::MakeClass and TTree::AddFriend

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jan 02 2004 - 10:30:50 MET


Hi Sue,

Yes, I agree that friends should be supported by MakeClass.
This requires some work, in particular in case of MakeSelector.
On our todo list.

Rene Brun

On Tue, 30 
Dec 
2003, Sue Kasahara wrote:

> Hi roottalk,
> I am trying to use TTree::MakeClass with a set of friend trees:
> {
> TFile* file = new TFile("ntuple.root","READ");
> TTree* treeA = (TTree*)(file -> Get("NtpA"));
> TTree* treeB = (TTree*)(file -> Get("NtpB"));
> 
> treeA -> AddFriend(treeB);
> treeA -> MakeClass();
> }
> I'm finding that the Class generated by MakeClass only
> reflects the contents of treeA and not of its friend treeB.
> Is there a way to set this up so that MakeClass will generate
> a class with reference to both trees?  Otherwise, is it possible
> to modify the MakeClass method to support this?
> We have a set of users that find the MakeClass method useful,
> and would like to make the use of friend trees with MakeClass
> as transparent as possible.
> I am using root version 3.10/01 updated 12/9/03 with gcc 3.2.2
> on rh linux v9.
> Thanks for your help,
> -Sue K.
> 
> 
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET