Re: [ROOT] SetAutoDelete & TChain

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 08 2001 - 15:14:21 MET


Hi Thomas,

I do not understand your point. Why would you like to see a call to your
destructors when TChain moves to a new file ?

TChain::LoadTree must reset/recompute the addresses of the classes in
the top level branches in case the Trees have been generated with different
versions of the classes.

Rene Brun

Thomas Bretz wrote:
> 
> Hi rooters,
> 
> I'm using a TChain to access my tree and its branches. I was wondering,
> why the destructors of my functions are not called independant of the
> Setting of TChain::GetBranch->SetAutoDelete. From a look at the code of
> TChain::GetEntry/LoadTree it seems to me, that the setting of the
> autodelete flag is skipped at least when a new File is opened and the
> TChainElement settings are copied to the TBranch of the new file. Am I
> right, or was the way of setting these flag incorrect?
> 
> Thnaks,
> Thomas.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:06 MET