Bug fix. The trigger mask stored in ESD was in fact the one from the previous event...