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;