Changeset 12670 for trunk/FACT++/gui
- Timestamp:
- 11/29/11 16:36:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12669 r12670 717 717 if (!inputFile->HasKey(*it)){ 718 718 cout << "Warning: header keyword " << *it << " missing." << endl; 719 return;}719 } 720 720 } 721 721 catch (std::runtime_error e) … … 1156 1156 fDrsCalib.Apply(eventData, rawEventData, startPix, nRoi); 1157 1157 DrsCalibrate::RemoveSpikes(eventData, nRoi); 1158 for (int i=0;i<1024;i++)1159 eventData[i] = eventData[i+1024];1158 // for (int i=0;i<1024;i++) 1159 // eventData[i] = eventData[i+1024]; 1160 1160 //TODO apply calibration to the Time markers 1161 1161 } … … 2365 2365 for (int i=start;i<end;i++) 2366 2366 { 2367 if (i==863)//keep crazy pixel out of the autoscale 2368 continue; 2367 2369 for (int j=10;j<GLWindow->nRoi-50;j++) 2368 2370 { … … 2390 2392 } 2391 2393 // cout << "min: " << min << " max: " << max << " average: " << average << endl; 2392 double minRange = (double)(min+(VALUES_SPAN/2))/(double) VALUES_SPAN;2393 double maxRange = (double)(max+(VALUES_SPAN/2))/(double) VALUES_SPAN;2394 double midRange = (double)(average+(VALUES_SPAN/2))/(double) VALUES_SPAN;2394 double minRange = (double)(min+(VALUES_SPAN/2))/(double)(VALUES_SPAN-1); 2395 double maxRange = (double)(max+(VALUES_SPAN/2))/(double)(VALUES_SPAN-1); 2396 double midRange = (double)(average+(VALUES_SPAN/2))/(double)(VALUES_SPAN-1); 2395 2397 if (GLWindow->logScale) 2396 2398 {
Note:
See TracChangeset
for help on using the changeset viewer.