Operation of an 18-fold segmented n-type HPGe detector in liquid nitrogen