Skip to content

SPI hit finder

Egor Sobolev requested to merge feat/spi-hitfinder into main

This add implementation of SPI hit-finder based on lit-pixel counter. The numbers of lit-pixels, computed per frame per module, are expected in EXDF files. The implementation of the lit-pixel counter is integrated in pycalibration pipeline, see calibration/pycalibration!986 (merged).

Features:

  • read lit-pixel from EXDF files
  • computes sum the number lit-pixel per module for every image
  • computes adaptive threshold if configured
  • generates the hit mask
  • randomly select the fraction of misses and makes the miss mask
  • draws plots of hitrate, histscore and hitscore histogram

Examples of the plots: image image image

Merge request reports