diff --git a/slsDetectorCalibration/singlePhotonDetector.h b/slsDetectorCalibration/singlePhotonDetector.h index f8a8fd08c..eb0e3ce6b 100644 --- a/slsDetectorCalibration/singlePhotonDetector.h +++ b/slsDetectorCalibration/singlePhotonDetector.h @@ -437,7 +437,7 @@ class singlePhotonDetector : public analogDetector { val[(iy + ir) * nx + ix + ic] = subtractPedestal(data, ix + ic, iy + ir, cm); - } + } v = &(val[(iy + ir) * nx + ix + ic]); tot += *v;