An ultralow background germanium gamma-ray spectrometer