file from Anna: could be reduce print out in zmq processing when using energy threshold (#1113)

This commit is contained in:
maliakal_d 2025-02-21 12:49:33 +01:00 committed by GitHub
parent 117637863d
commit aad1ab0cf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -503,6 +503,7 @@ class singlePhotonDetector : public analogDetector<uint16_t> {
} }
#endif #endif
if (ee == PHOTON && val[iy * nx + ix] == max) { if (ee == PHOTON && val[iy * nx + ix] == max) {
good = 1;
ee = PHOTON_MAX; ee = PHOTON_MAX;
// cout << "**" <<id<< " " << iframe << " " << nDark << " " // cout << "**" <<id<< " " << iframe << " " << nDark << " "
// << ix << " " << iy << " " << rms << " " << max << " " << // << ix << " " << iy << " " << rms << " " << max << " " <<
@ -536,7 +537,6 @@ class singlePhotonDetector : public analogDetector<uint16_t> {
cout << max << " " << val[iy * nx + ix] << endl; cout << max << " " << val[iy * nx + ix] << endl;
} }
//else (clusters + nph)->print(); //else (clusters + nph)->print();
good = 1;
if (eMin > 0 && tot < eMin) if (eMin > 0 && tot < eMin)
good = 0; good = 0;
if (eMax > 0 && tot > eMax) if (eMax > 0 && tot > eMax)