The energy resolution (left panel) and the energy-to-channel mapping (right panel) as determined by fitting the simulated spectrum to the observed spectrum for radioactive sources. The points in the left panel mark the actual value for the four peaks, while those in right panel show the values obtained by fitting the spectrum by a sum of Gaussian peaks.