Program for the analysis of pulse height spectra and the background from a proportional detector