High speed pulse discrimination for real-time EDM analysis