Skip to content

Cluster: fix segfault if pixel charge negative

Jens Kroeger requested to merge fix_segfault into master

This is a follow-up on !433 (merged)

After !433 (merged): If pixel charge negative, getSeedPixel() would return a nullptr. This caused a seg fault in Clustering4D.

A negative pixel charge should not occur generally. But e.g. after applying the toa/tot calibration to the Timepix3, it happens occationally.

Edited by Jens Kroeger

Merge request reports