Finding an object

From: Michael Katz-Hyman (michaelk@jlab.org)
Date: Thu Aug 05 1999 - 16:52:19 MEST


I am trying to set the current canvas, but to do that i need to find it
first.

I am trying the following command to find the canvas named "HMS"


gROOT->GetListOfCanvases()->FindObject("HMS")

this howver returns a TObject not a TCanvas and so when I then try to do:

gROOT->GetListOfCanvases()->FindObject("HMS")->cd();

it fails saying there is no member function cd in TObject

is there a better way?


Mike



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:37 MET