Hi rooters,
I have a problem with the fitting of histogram. Iām trying to fit a function with multiple peaks. Iām using TSpectrum Class in order to find peaks positions and I have no problem! Also the subtraction of background works!
But when I try to fit signal with my function, the minimization procedure fails with message:
Warning in TH1F::Fit: Abnormal termination of minimization.
Iām sending in attachment my macro and the root file with histogram to be fitting!!
Thanks in advance for any suggestions!!
Michela
peaks_histo.root (3.77 KB)
peak_finder.c (4.48 KB)