Re: [ROOT] About fit with my function

From: Patois Yannick (patois@ganil.fr)
Date: Sat Feb 17 2001 - 17:44:36 MET


On Sat, 17 Feb 2001 babintsev@mx.ihep.su wrote:

> Hello rooters.
> 
> root [1] .x fitexample.C
> 
>  *** Break *** floating point exception
> Root > Function fitf() busy flag cleared
> Function fitexample() busy flag cleared

>       TFile *f = new TFile("hsimple.root");
>       TH1F *hpx = (TH1F*)f->Get("hpx");

Probably you didnt run the tutorial script that was creating
"hsimple.root" (I think it's hsimple.C), so hpx is not defined.

Btw, the script could easily check this, with something like
if (!hpx) {puts("hpx doesnt exist ! Run hsimple.C first.");delete
f;return;}

	Yannick



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:36 MET