An antimatter spectrometer in space