Re: [ROOT] SetDirectory(0) question

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 07 2003 - 23:51:25 MEST


Hi Michael,

I do not understand your question.
TGraph objects are not added to the list of objects in the
current directory (only TH1 and TTree).
The intermediate histogram created to draw the graph is also not added
to the current directory.

ReneBrun

On 7 
Aug 2003, 
Michael T. Gericke wrote:

> Hi Rooters,
> 
> I know that I can call TH1::SetDirectory(0) if I don't
> want a histogram to be added to any directory, so that
> I can open and close root files without destroying the
> histogram.
> 
> However, I can't find a way to do the same thing for
> TGraph objects. TGraph graph.GetHistogram()->SetDirectory(0)
> doesn't work...
> 
> Does anyone know how to do this?
> 
> Thanks,
> 
> Michael
> 
> 
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET