- Timestamp:
- 10/26/11 19:44:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12274 r12281 1036 1036 // if (calibratedCheckBox->isChecked()) 1037 1037 DataCalib::Apply(eventData, rawEventData, startPix, nRoi); 1038 /* 1038 CalibData::RemoveSpikes(eventData, nRoi); 1039 /* 1040 1039 1041 for (int i=0;i<1440;i++) 1040 1042 for (int j=0;j<nRoi;j++) … … 1216 1218 // if (GLWindow->calibratedCheckBox->isChecked()) 1217 1219 if (state) 1220 { 1218 1221 DataCalib::Apply(GLWindow->eventData, GLWindow->rawEventData, GLWindow->startPix, GLWindow->nRoi); 1222 CalibData::RemoveSpikes(GLWindow->eventData, GLWindow->nRoi); 1223 } 1219 1224 1220 1225 GLWindow->updateGL(); … … 2046 2051 { 2047 2052 /* 2048 GLWindow->ss[0] = 0 ;2049 GLWindow->ss[1] = 0. 25;2050 GLWindow->ss[2] = 0.5 ;2051 GLWindow->ss[3] = 0. 75;2052 GLWindow->ss[4] = 1;2053 range0->setValue(GLWindow->ss[0]);2054 range1->setValue(GLWindow->ss[1]);2055 range2->setValue(GLWindow->ss[2]);2056 range3->setValue(GLWindow->ss[3]);2057 range4->setValue(GLWindow->ss[4]);2053 GLWindow->ss[0] = 0.496; 2054 GLWindow->ss[1] = 0.507; 2055 GLWindow->ss[2] = 0.518; 2056 GLWindow->ss[3] = 0.529; 2057 GLWindow->ss[4] = 0.540;; 2058 colorRange0->setValue(GLWindow->ss[0]); 2059 colorRange1->setValue(GLWindow->ss[1]); 2060 colorRange2->setValue(GLWindow->ss[2]); 2061 colorRange3->setValue(GLWindow->ss[3]); 2062 colorRange4->setValue(GLWindow->ss[4]); 2058 2063 */ 2059 2064 return; … … 2061 2066 if (!GLWindow->nRoi) 2062 2067 return; 2063 int start, end; 2064 if (entireCameraScale->isChecked()) 2065 { 2066 start = 0; 2067 end = 1440; 2068 } 2069 else 2068 2069 int start = 0; 2070 int end = 1440; 2071 2072 if (!entireCameraScale->isChecked()) 2070 2073 { 2071 2074 start = GLWindow->selectedPixel; 2072 end = GLWindow->selectedPixel+1;2073 } 2074 2075 int min = 100000; //real min = -2048, int_16 = -32768 to 327672075 end = GLWindow->selectedPixel+1; 2076 } 2077 2078 int min = 100000; //real min = -2048, int_16 = -32768 to 32767 2076 2079 int max = -100000; //real max = 2047 2080 2077 2081 long average = 0; 2078 2082 long numSamples = 0; 2079 2083 int errorDetected = -1; 2084 2080 2085 for (int i=start;i<end;i++) 2081 2086 {
Note:
See TracChangeset
for help on using the changeset viewer.