Hi Patrice, To add an object to the list of objects for the current directory, do gDirectory->Append(TObject *obj), not gROOT->Append. We posted a note yesterday describing the object ownership in ROOT. You can find a copy of this note at: http://root.cern.ch/root/ObjectOwnership.pdf I also want to mention once more the class TFolder. The extensions to the Trees coming with the next ROOT release will be particularly nice for large hierarchical collections of objects known to the TFolder structure. Rene Brun Patrice Lebrun wrote: > > Hi, > > To add objects automatically by to the list of objects in memory in the > current > directory we can call gROOT->Append(TObject* obj) in their constructor > but is there an other way to do that ? > > Thank you. > > -- > Patrice Lebrun L3-D0 > Institut de Physique Nucleaire de Lyon > Phone: 04 72 44 84 43 > Fax: 04 72 43 14 52
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET