I have a spectrum of data (Sodium_22.txt) and I would like to fit the two peaks in the data to Gaussians. However, whenever I use the gaus
option, my fit fails spectacularly, forming just a straight line at the bottom. How can the way my code is written now be modified to fit the peaks in my spectrum (and my other spectra data!)?
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.22
Platform: Ubuntu 18.04
Sodium_22.txt (10 KB) Spectrum_fitter.C (2.6 KB)