From 02a36a148f6a0113c7658befae9a96308f8ffa57 Mon Sep 17 00:00:00 2001 From: Anna Bergamaschi Date: Thu, 7 Nov 2019 13:28:03 +0100 Subject: [PATCH] fixed process make file --- slsDetectorCalibration/analogDetector.h | 4 ++-- .../moench03ClusterFinder.cpp | 19 ++++++++++--------- slsDetectorCalibration/single_photon_hit.h | 4 ++-- .../slsDetectorClient/CMakeLists.txt | 1 - .../slsDetectorClient/sls_detector_client.cpp | 12 ++++++------ 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/slsDetectorCalibration/analogDetector.h b/slsDetectorCalibration/analogDetector.h index d8b0e141f..800bfed5c 100644 --- a/slsDetectorCalibration/analogDetector.h +++ b/slsDetectorCalibration/analogDetector.h @@ -675,7 +675,7 @@ template class analogDetector { delete [] gm; return 1; } - return NULL; + return 0; } /** @@ -700,7 +700,7 @@ template class analogDetector { delete [] gm; return 1; } - return NULL; + return 0; } diff --git a/slsDetectorCalibration/moenchExecutables/moench03ClusterFinder.cpp b/slsDetectorCalibration/moenchExecutables/moench03ClusterFinder.cpp index e05f9d38b..57b73e0d5 100644 --- a/slsDetectorCalibration/moenchExecutables/moench03ClusterFinder.cpp +++ b/slsDetectorCalibration/moenchExecutables/moench03ClusterFinder.cpp @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) { int csize=3; int nx=400, ny=400; int save=1; - int nsigma=5; + int nsigma=1; int nped=1000; int ndark=100; int ok; @@ -201,14 +201,15 @@ int main(int argc, char *argv[]) { // cout << ifr << " " << ff << " " << ix << " " << iy << " " << decoder->getChannel(buff, ix, iy) << endl ; // } // } - - mt->pushData(buff); - // // //pop - mt->nextThread(); - // // // cout << " " << (void*)buff; - mt->popFree(buff); - ifr++; - if (ifr%10000==0) cout << ifr << " " << ff << endl; + if (np==40) { + mt->pushData(buff); + // // //pop + mt->nextThread(); + // // // cout << " " << (void*)buff; + mt->popFree(buff); + ifr++; + if (ifr%10000==0) cout << ifr << " " << ff << endl; + } ff=-1; } cout << "--" << endl; diff --git a/slsDetectorCalibration/single_photon_hit.h b/slsDetectorCalibration/single_photon_hit.h index 5c4c130e9..1a1a5e868 100644 --- a/slsDetectorCalibration/single_photon_hit.h +++ b/slsDetectorCalibration/single_photon_hit.h @@ -212,7 +212,7 @@ class single_photon_hit { void print() { // int ix, iy; - + printf("*** %d %d %d\n",iframe, x, y); for (int iy=0; iy