> Is there any way to do this? I do not seem to see a "remove" method > in TDirectory. Use histogram method h->SetDirectory(0) Victor Peter Steinberg wrote: > > 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) > ---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -- Victor M. Perevoztchikov perev@bnl.gov perev@vxcern.cern.ch Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000 tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET