Fitting of functions, folding of histos

From: Tadeusz Pytlos (pytlos@fizwe5.fic.uni.lodz.pl)
Date: Wed Oct 07 1998 - 10:40:10 MEST


Dear Rooters,
I've got a histo (hin) with small statistics. Before
fitting my own function (func) I'd like to smooth the
histo using pol9. So in fact I want to fit pol9 by
my own function. 
What is the right way to do it?
I tried for example:
 TF1 *hpol=new TF1("hpol","pol9(0)",0,m_max,npar);
 hin->Fit("hpol","be");
 TF1 *fpol=gROOT->GetFunction("hpol");
 fpol->Fit("func","be");
 TF1 *fun=gROOT->GetFunction("func");

but I received
Function:hpol cannot be compiled

 *** Break *** segmentation violation
 

Next question - Is the folding of histos implemented in ROOT?
Best wishes,
           Tadeusz


--
Tadeusz Pytlos        
mailto:pytlos@fizwe5.fic.uni.lodz.pl 
Lodz, Poland                                                 



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