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!)?
ROOT Version: 6.22
Platform: Ubuntu 18.04