Re: Adding TGraph to a Directory

From: Jacek M. Holeczek <holeczek_at_us.edu.pl>
Date: Thu, 10 Mar 2005 16:02:41 +0100 (MET)


Hi,
when I met this problems, I solved it by replacing :

        gDirectory->Add(ge);
with

        gROOT->GetListOfSpecials()->Add(ge);
Then the graphs are "saved" in the "Specials" ROOT folder (try the TBrowser to see it).
In any moment you can still easily "find it" using :

        gROOT->FindObject("mygraph")

Hope it helps,
Jacek. Received on Thu Mar 10 2005 - 16:02:48 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET