Solving a Deconvolution Problem in Photon Spectrometry