A QDD-type magnetic spectrometer