Changeset 12482 for trunk/FACT++
- Timestamp:
- 11/09/11 22:48:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12426 r12482 561 561 void RawDataViewer::paintGL() 562 562 { 563 //Should not be required, but apparently it helps when piping it through X forwarding 563 564 glFinish(); 564 565 makeCurrent(); … … 2212 2213 return; 2213 2214 2215 //int currentPixel = pixel; 2216 int currentPixel = 0; 2214 2217 for (int i=0;i<GLWindow->nRoi;i++) 2218 yval[i] = 0; 2219 for (int j=0;j<1440;j++) { 2220 currentPixel = j; 2221 for (int i=0;i<GLWindow->nRoi;i++) 2215 2222 { 2216 2223 xval[i] = i; 2217 #ifdef LOAD_RAW 2218 yval[i] = eventsData[0][pixel][i];2219 #else 2220 yval[i] = GLWindow->eventData[GLWindow->nRoi*pixel + i];2221 #endif 2222 } 2224 yval[i] += GLWindow->eventData[GLWindow->nRoi*currentPixel + i]; 2225 } 2226 } 2227 for (int i=0;i<GLWindow->nRoi;i++) 2228 yval[i] /= 1440; 2229 2223 2230 int realNumSamples = GLWindow->nRoi; 2224 2231 if (GLWindow->nRoiTM != 0) … … 2243 2250 yval[arrayIndex] = GLWindow->eventData[GLWindow->nRoi*1440 + GLWindow->nRoiTM*(40*crateId + 4*boardId + patchId) + i]; 2244 2251 } 2245 //realNumSamples += GLWindow->nRoiTM - TMIndex;2246 } 2247 cout << pixelIdInPatch << " " ;2252 realNumSamples += GLWindow->nRoiTM - TMIndex; 2253 } 2254 // cout << pixelIdInPatch << " " ; 2248 2255 } 2249 2256 //cout << realNumSamples << endl;
Note:
See TracChangeset
for help on using the changeset viewer.