Re: 2-D FitPanel

Rene Brun (Rene.Brun@cern.ch)
Wed, 12 Aug 1998 09:58:26 +0200


>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