Multi Gaussian Fit

Dear Expert
I want to use RooFit Class to fitting peaks that have been found with TSpectrum Class.
i could use Global Fit for this purpose but i am looking for a way to making Multi_Gaussian Model in RooFit.
in other word, i want to make a Gaussian Model with N means,sigmas and Amplitudes.
Any help would be helpful.
Best Regards.


You can add many RooGaussian using the RooAddPdf class. You can use TSpectrum to get the position of the peak that you can use as initial parameters for the mean of the gaussians.

Best Regards