Re: [ROOT] TChain and AddFriend() problem

From: Ole Streicher (ole@ifh.de)
Date: Thu Sep 19 2002 - 14:57:11 MEST


Hello Rene!

Rene Brun writes:
 > TTree::AddFriend accepts a TTree as input. It is not clever enough
 > to accept a TChain.

Oh. I thought that a TChain is just an extended TTree (since it
inherits from a TTree).

 > However, a TChain::AddFriend accepts either a TTree or a TChain as
 > argument. TTree::AddFriend should be protected against use with a TChain.

Is there any drawback when I use a TChain instead of a TTree?

Ole



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:10 MET