A position sensitive detector for a magnetic spectrograph