Changeset 11941 for trunk/FACT++/gui/RawEventsViewer
- Timestamp:
- 09/02/11 09:34:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r11933 r11941 25 25 26 26 #include "src/Configuration.h" 27 28 //#include "../BasicGlCamera.cc"29 27 30 28 #undef ACTUAL_NUM_PIXELS … … 353 351 drawBlur = false; 354 352 loopCurrentEvent = false; 353 SetAutoRefresh(true); 355 354 #ifdef LOAD_RAW 356 355 loadEvents("/scratch/00000043.001_T.bin"); … … 908 907 int16_t* origTheWayIWant = new int16_t[1024*1440]; 909 908 910 int numPixels = 1024;911 int leftOver = 1440-numPixels;909 // int numPixels = 1024; 910 // int leftOver = 1440-numPixels; 912 911 for (int k=0;k<1024;k++) 913 912 for (int j=0;j<1440;j++) … … 957 956 ofstream outBin("/scratch/bin/outputBin.bin", ios_base::out | ios_base::binary); 958 957 ofstream outWave("/scratch/bin/outputWave.bin", ios_base::out | ios_base::binary); 959 int16_t* waveLetArray = new int16_t[1024*1440];958 int16_t* waveLetArray_ = new int16_t[1024*1440]; 960 959 int16_t* origTheWayIWant = new int16_t[1024*1440]; 961 960 … … 967 966 outBin.write((const char*)(rawEventData), 1440*1024*2); 968 967 969 970 int leftOver = 1440-numPixels;968 // int numPixels = 1024; 969 // int leftOver = 1440-numPixels; 971 970 for (int k=0;k<1024;k++) 972 971 for (int j=0;j<1440;j++) … … 983 982 { 984 983 if (j + waveSpan < totalNumSamples) 985 if (!doWaveLetsPlease(waveSpan, &origTheWayIWant[j], &waveLetArray [j], true))984 if (!doWaveLetsPlease(waveSpan, &origTheWayIWant[j], &waveLetArray_[j], true)) 986 985 return; 987 986 } … … 997 996 { 998 997 // cout << " Doint one last run of " << lastRun << " samples" << endl; 999 doWaveLetsPlease(lastRun, &origTheWayIWant[j], &waveLetArray [j], true);998 doWaveLetsPlease(lastRun, &origTheWayIWant[j], &waveLetArray_[j], true); 1000 999 } 1001 1000 else … … 1003 1002 // cout << " Filling in " << lastRun << " samples" << endl; 1004 1003 for (int l=0;l<lastRun;l++) 1005 waveLetArray [j+l] = origTheWayIWant[j+l];1004 waveLetArray_[j+l] = origTheWayIWant[j+l]; 1006 1005 } 1007 1006 if (!lastRun) … … 1009 1008 j += lastRun; 1010 1009 } 1011 outWave.write((const char*)(waveLetArray ), 1440*1024*2);1010 outWave.write((const char*)(waveLetArray_), 1440*1024*2); 1012 1011 } 1013 1012 outWave.close(); … … 1015 1014 inputFile->GetRow(0); 1016 1015 1017 delete[] waveLetArray ;1016 delete[] waveLetArray_; 1018 1017 delete[] origTheWayIWant; 1019 1018 } … … 1266 1265 for (int j=0;j<viewer->nRoi;j++) 1267 1266 { 1268 // cout << "start value: " << viewer->eventData[i*1024+j] << " baseline: " << viewer->baseLineMean[i*1024+j];1269 // cout << " triggerOffset: " << viewer->triggerOffsetMean[i*1024+j] << " gain: " << viewer->gainMean[i*1024+j];1270 1267 int realj = (j+viewer->startPix[j])%1024; 1271 1268 viewer->eventData[i*1024+j] *= 2000.f/4096.f; … … 1273 1270 viewer->eventData[i*1024+j] /= viewer->gainMean[i*1024+realj]; 1274 1271 viewer->eventData[i*1024+j] *= (50000.f/65536.f) * 2500.f; 1275 // cout << " end value: " << viewer->eventData[i*1024+j] << endl;1276 1272 } 1277 1273 viewer->updateGL();
Note:
See TracChangeset
for help on using the changeset viewer.