Trigger processor for the APEX positron-electron spectrometer