removing objects from gDirectory without deleting them

From: Peter Steinberg (psteinc@attglobal.net)
Date: Tue Mar 21 2000 - 22:29:02 MET


Hello -

I have an object which creates a set of histograms with distinct
names.  In order to let other users find these histograms by
gROOT->FindObject(), I put them in the top ROOT directory by
hand (gDirectory->Append(h), etc.) since I have disabled 
the automatic appending in my object.  

However, my object owns these histograms; thus, I would like to be able to
tell the gDirectory to "forget" them, without touching the object.  
This is not exactly what gDirectory->Delete() does, since this actually 
performs an object->Delete()...

Is there any way to do this?  I do not seem to see a "remove" method
in TDirectory.

- Peter


-- 

---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Dr. Peter A. Steinberg			      Brookhaven National Laboratory
Assistant Scientist                                Bldg 555, Upton NY, 11973
---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Office: 631-344-4335			      mailto:Peter.Steinberg@bnl.gov
Mobile: 917-549-3094                       http://www.rhic.bnl.gov/~steinber
SMS:    9175493094@messaging.sprintpcs.com (<100 characters)
---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET