Changeset 12274
- Timestamp:
- 10/25/11 21:33:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12189 r12274 610 610 rawEventData = new int16_t[(1440+160)*nRoi]; 611 611 waveLetArray = new int16_t[1024*1440]; 612 if (!inputFile->SetPtrAddress("Data", rawEventData)){ 613 cout << "Missing column " << "Data" << " Aborting load..." << endl; 614 nRoi = nRows = 0;return;} 615 if (!inputFile->SetPtrAddress("EventNum", &eventNum)){ 616 cout << "Missing column " << "EventNum" << " Aborting load..." << endl; 617 nRoi = nRows = 0;return;} 618 if (!inputFile->SetPtrAddress("TriggerType", &triggerType)){ 619 cout << "Missing column " << "TriggerType" << " Aborting load..." << endl; 620 nRoi = nRows = 0;return;} 621 if (!inputFile->SetPtrAddress("SoftTrig", &softTrig)){ 622 cout << "Missing column " << "SoftTrig" << " Aborting load..." << endl; 623 nRoi = nRows = 0;return;} 624 if (!inputFile->SetPtrAddress("PCTime", pcTime)){ 625 cout << "Missing column " << "PCTime" << " Aborting load..." << endl; 626 nRoi = nRows = 0;return;} 627 if (!inputFile->SetPtrAddress("BoardTime", boardTime)){ 628 cout << "Missing column " << "BoardTime" << " Aborting load..." << endl; 629 nRoi = nRows = 0;return;} 630 if (!inputFile->SetPtrAddress("StartCellData", startPix)){ 631 cout << "Missing column " << "StartCellData" << " Aborting load..." << endl; 632 nRoi = nRows = 0;return;} 633 if (!inputFile->SetPtrAddress("StartCellTimeMarker", startTM)){ 634 cout << "Missing column " << "StartCellTimeMarker" << " Aborting load..." << endl; 635 nRoi = nRows = 0;return;} 612 try 613 { 614 inputFile->SetPtrAddress("Data", rawEventData); 615 inputFile->SetPtrAddress("EventNum", &eventNum); 616 inputFile->SetPtrAddress("TriggerType", &triggerType); 617 inputFile->SetPtrAddress("SoftTrig", &softTrig); 618 inputFile->SetPtrAddress("BoardTime", boardTime); 619 inputFile->SetPtrAddress("StartCellData", startPix); 620 inputFile->SetPtrAddress("StartCellTimeMarker", startTM); 621 } 622 catch (const runtime_error &e) 623 { 624 cout << e.what() << endl; 625 cout << "Loading aborted." << endl; 626 627 nRoi = nRows = 0; 628 629 return; 630 } 631 632 try 633 { 634 pcTime[0] = pcTime[1] = 0; 635 inputFile->SetPtrAddress("UnixTimeUTC", pcTime); 636 } 637 catch (const runtime_error&) 638 { 639 } 640 641 636 642 int backupStep = eventStep; 637 643 rowNum = -1;
Note:
See TracChangeset
for help on using the changeset viewer.