diff --git a/slsDetectorCalibration/analogDetector.h b/slsDetectorCalibration/analogDetector.h index b6242bcff..66fec8ceb 100644 --- a/slsDetectorCalibration/analogDetector.h +++ b/slsDetectorCalibration/analogDetector.h @@ -390,15 +390,21 @@ template class analogDetector { \returns pedestal rms */ virtual double getPedestalRMS(int ix, int iy){ - if (ix>=0 && ix=0 && iy=0 && ix=0 && iy=0 && ix=0 && iy class analogDetector { virtual double* getPedestal(double *ped){ if (ped==NULL) ped=new double[nx*ny]; - for (int iy=0; iy { } else { row=200+i/sc_width; } - dataMap[row][col]=sizeof(sls_detector_header)+(nadc*i+iadc)*2;//+16*(ip+1); + dataMap[row][col]=sizeof(sls_detector_header)+(nadc*i+iadc)*2;//+16*(ip+1); +#ifdef HIGHZ + dataMask[row][col]=0x3fff; //invert data +#endif if (dataMap[row][col]<0 || dataMap[row][col]>=nSamples*2*32) cout << "Error: pointer " << dataMap[row][col] << " out of range "<< endl; } diff --git a/slsDetectorCalibration/moenchExecutables/Makefile.cluster_finder b/slsDetectorCalibration/moenchExecutables/Makefile.cluster_finder index 32909fc2e..c5eeca444 100644 --- a/slsDetectorCalibration/moenchExecutables/Makefile.cluster_finder +++ b/slsDetectorCalibration/moenchExecutables/Makefile.cluster_finder @@ -13,6 +13,13 @@ all: moenchClusterFinder moenchMakeEta moenchInterpolation moenchNoInterpolation moenchClusterFinder: moench03ClusterFinder.cpp $(INCS) clean g++ -o moenchClusterFinder moench03ClusterFinder.cpp $(LDFLAG) $(INCDIR) $(LIBHDF5) $(LIBRARYCBF) -DSAVE_ALL -DNEWRECEIVER + +moenchClusterFinderHighZ: moench03ClusterFinder.cpp $(INCS) clean + g++ -o moenchClusterFinderHighZ moench03ClusterFinder.cpp $(LDFLAG) $(INCDIR) $(LIBHDF5) $(LIBRARYCBF) -DSAVE_ALL -DNEWRECEIVER -DHIGHZ + + + + moenchMakeEta: moench03Interpolation.cpp $(INCS) clean g++ -o moenchMakeEta moench03Interpolation.cpp $(LDFLAG) $(INCDIR) $(LIBHDF5) $(LIBRARYCBF) -DFF @@ -28,6 +35,12 @@ moenchPhotonCounter: moenchPhotonCounter.cpp $(INCS) clean moenchAnalog: moenchPhotonCounter.cpp $(INCS) clean g++ -o moenchAnalog moenchPhotonCounter.cpp $(LDFLAG) $(INCDIR) $(LIBHDF5) $(LIBRARYCBF) -DNEWRECEIVER -DANALOG +moenchPhotonCounterHighZ: moenchPhotonCounter.cpp $(INCS) clean + g++ -o moenchPhotonCounterHighZ moenchPhotonCounter.cpp $(LDFLAG) $(INCDIR) $(LIBHDF5) $(LIBRARYCBF) -DNEWRECEIVER -DHIGHZ + +moenchAnalogHighZ: moenchPhotonCounter.cpp $(INCS) clean + g++ -o moenchAnalogHighZ moenchPhotonCounter.cpp $(LDFLAG) $(INCDIR) $(LIBHDF5) $(LIBRARYCBF) -DNEWRECEIVER -DANALOG -DHIGHZ + clean: rm -f moenchClusterFinder moenchMakeEta moenchInterpolation moenchNoInterpolation moenchPhotonCounter moenchAnalog