From bb0201385f622d37f9efcbd00a91534fdebcf4b0 Mon Sep 17 00:00:00 2001 From: Anna Bergamaschi Date: Mon, 24 Oct 2022 12:39:37 +0200 Subject: [PATCH] fixed issue with cluster finder --- slsDetectorCalibration/singlePhotonDetector.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/slsDetectorCalibration/singlePhotonDetector.h b/slsDetectorCalibration/singlePhotonDetector.h index 79a3cf44d..f8a8fd08c 100644 --- a/slsDetectorCalibration/singlePhotonDetector.h +++ b/slsDetectorCalibration/singlePhotonDetector.h @@ -433,10 +433,11 @@ class singlePhotonDetector : public analogDetector { (ix + ic) >= 0 && (ix + ic) < nx) { - if ((iy + ir) >= iy && (ix + ic) >= ix ) { + if ((iy + ir) >= iy && (ix + ic) >= ix ) { val[(iy + ir) * nx + ix + ic] = - subtractPedestal(data, ix + ic, iy + ir, cm); - + subtractPedestal(data, ix + ic, iy + ir, cm); + + } } v = &(val[(iy + ir) * nx + ix + ic]); tot += *v;