ETROC data consistency checks
There are several cross checks that can be made to make sure we read out data correctly:
- Track the number of L1As sent, and compare to the counter in the headers (i.e. checking if any L1As were missed or not received by the emulator)
- Keep track of hits in individual pixels, called counter_a on slide 4 here
- Check row and col number within a 40bit data word (profiting from the redundancy)
- Check the CRC (I don't know if we finally got the details, otherwise let's ask Jinyuan)
- CRC-8 details can be found here: https://gitlab.cern.ch/cms-etl-electronics/emulator_fw/-/blob/master/src/ETROC2Readout/CRC8.v
- Check that the number of hits correspond to the data we received
Additionally it would be nice to have a nice on-screen table for single events and the overall summary.