Fitting of functions, folding of histos

Tadeusz Pytlos (pytlos@fizwe5.fic.uni.lodz.pl)
Wed, 7 Oct 1998 10:40:10 +0200 (CEST)


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