This adds the normalization of SPI hitscores (number of lit-pixels) by XGM pulse energy exposed in the particular frame. This feature improve the hitfinding quite a bit in a case if the pulse energy varies much over the train, for example in proposal 2671.
Tested offline on run 409, proposal 2671
SPB_DET_AGIPD1M-1_correct_002671_r409_240924_135147.pdf