Trigger and data acquisition