Changeset 12015 for trunk/FACT++
- Timestamp:
- 09/07/11 17:46:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r11941 r12015 355 355 loadEvents("/scratch/00000043.001_T.bin"); 356 356 #endif 357 // cout << "avant" << endl; 358 // calculatePixelsCoords(); 359 // cout << "apres" << endl; 360 /* 361 ifstream fin2("MasterList-v3.txt"); 362 if (!fin2.is_open()) 363 { 364 cout << "Error: file \"MasterList-v3\" missing. aborting." << endl; 357 PixelMap mypMap; 358 if (!mypMap.Read("FACTmapV5.txt")) 359 { 360 cerr << "ERROR - Problems reading FACTmapV5.txt" << endl; 365 361 exit(-1); 366 362 } 363 ifstream fin1("Trigger-Patches.txt"); 364 if (!fin1.is_open()) 365 { 366 cout << "Error: file \"Trigger-Patches\" missing. aborting." << endl; 367 exit(-1); 368 } 369 string buf; 370 vector<int> patchHW(1440); 367 371 int l = 0; 368 string buf; 369 while (getline(fin2, buf, '\n')) 370 { 371 buf = Trim(buf); 372 while (getline(fin1, buf, '\n')) 373 { 374 buf = Tools::Trim(buf); 372 375 if (buf[0]=='#') 373 376 continue; 374 377 375 unsigned int softid, hardid, dummy;376 377 378 stringstream str(buf); 378 379 str >> softid; 380 str >> dummy; 381 str >> hardid; 382 383 if (softid>=1440) 384 continue; 385 386 hardwareMapping[softid] = hardid; 387 softwareMapping[hardid] = softid; 388 379 for (int i=0; i<9; i++) 380 { 381 unsigned int n; 382 str >> n; 383 384 if (n>=patchHW.size()) 385 continue; 386 387 patchHW[n] = l; 388 } 389 389 l++; 390 }*/ 390 } 391 if (l!=160) 392 cerr << "WARNING - Problems reading Trigger-Patches.txt" << endl; 393 394 assignPixelMap(mypMap); 395 assignTriggerPatchesMap(patchHW); 396 391 397 GLfloat tempPixelsCoords[MAX_NUM_PIXELS][3]; 392 398 for (int i=0;i<1440;i++)
Note:
See TracChangeset
for help on using the changeset viewer.