delete chain

From: Luca Grandi <luca.grandi_at_pv.infn.it>
Date: Tue, 17 Oct 2006 19:29:28 +0200


Hi all,
I have edited a root macro in which first I fill a set of trees, save them into files and then I add to a chain a selection of these files containing the trees. The chain is defined as
TChain *chain = new TChain("Eventi").
I need to use the "new" sintax since I need to open a treeviewer on the chain to access data and play with them even after the macro is executed. Even if, everytime I run the macro the above object is recreated and even if I placed a command like
delete chain
it seems to me that the memory is not cleared until i exit ROOT. I do not know why but the chain still contains the data of the first time I run it within a ROOT session. Is there a way to delete this object. I tried gROOT->Clear() and gROOT->delete() at the beginning but without luck.

Any suggestions?
thaks

Luca Received on Tue Oct 17 2006 - 19:33:06 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET