A sampling ADC as a universal tool for data processing and trigger application