Grating event processing data flow