A dead-time correction system for gamma-ray spectrometry of short-lived isotopes