copy_to_buffer
A class function that does more that its name suggests.
Algorithm
- Given a linked list of
DigiIterators: - For each
DigiIteratorit calibrates the ADC value to electron counts. - For each
DigiIterator:- Checks if its
adcvalue is abovethePixelThresholdand, if it is:- Updates the class attribute
theBuffer(the actual Pixel matrix) with the pixels ADC value. - If the
adcvalue is also abovetheSeedThreshold, the position (row & col) of theDigiIteratoris stored intheSeedsarray. - If this specific Digi has been recorded more than once (i.e. the row/col
combination has already been encountered in a previous
DigiIterator), the Digi is removed fromtheSeedsarray and the ADC value of the corresponding place (coordinates) is set to 0.
- Updates the class attribute
- Checks if its