Implementation of Trigger simulation (Raphael Tieulent)