Re: 2-D FitPanel

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Aug 12 1998 - 09:58:26 MEST


>Dear Rooters,
>I've got two problems.
>1) I have root file with many scaterplots created by TH2F
>and I'd like to fit points by FitPanel. Is it impossible?
>root [1] (class TFitPanel*)0x0
>Error function pol1 is not 2-D
>Error function pol2 is not 2-D
>
Not via Fitpanel with the current version, but via the Fit
pop-up menu.

>2) Is it possible to write TGraph object into root file?

Yes, this is possible, like for any TObject derived class.
You can do:
   mygraph->Write("graphname"); // if graph has no name
or
   mygraph->SetName("graphname");
   mygraph->Write();

Rene Brun



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