[ROOT] SetDirectory(0) question

From: Michael T. Gericke (mgericke@cyclonus.lanl.gov)
Date: Thu Aug 07 2003 - 18:58:08 MEST


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