A particle identification technique for large acceptance spectrometers