Scheme of high-resolution identification and selection of secondary ions for mass measurements with the Rare-RI Ring