How to: GeoPIXE: Generate energy calibration from foil data
The energy calibration step assures that all pixels in the detector report XRF peaks at the same energies. You should apply an energy calibration to your imported spectra before you generate a sum spectrum for fitting.