> gROOT->GetListOfCanvases()->FindObject("HMS")->cd(); > > it fails saying there is no member function cd in TObject you should do a cast like this: TCanvas *c = (TCanvas *)gROOT->FindObject("Fit2dimHist_temp"); Cheers, Otto ---------------------------------------------------------------------------- Otto Schaile Sektion Physik der LMU Muenchen Phone: (+49 89)289 14070 Am Coulombwall 1, D-85748 Garching, Germany FAX: (+49 89)289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:37 MET