diff --git a/slsDetectorCalibration/singlePhotonDetector.h b/slsDetectorCalibration/singlePhotonDetector.h index 61df4bbcd..6ea9ecb46 100644 --- a/slsDetectorCalibration/singlePhotonDetector.h +++ b/slsDetectorCalibration/singlePhotonDetector.h @@ -503,6 +503,7 @@ class singlePhotonDetector : public analogDetector { } #endif if (ee == PHOTON && val[iy * nx + ix] == max) { + good = 1; ee = PHOTON_MAX; // cout << "**" < { cout << max << " " << val[iy * nx + ix] << endl; } //else (clusters + nph)->print(); - good = 1; if (eMin > 0 && tot < eMin) good = 0; if (eMax > 0 && tot > eMax)