Process to obtain the energy spectrum of a radiation. The pulses of a detector supplying output pulses proportional to energy are sorted and counted according to their amplitude. The energy spectrum can be derived from the pulse amplitude distribution obtained in this way.