Programmable trigger for electron pairs in ring image Cherenkov counters