Changeset 17008 for trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
- Timestamp:
- 08/15/13 08:18:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r16964 r17008 561 561 } 562 562 vector<string> entriesToCheck; 563 entriesToCheck.push_back("NAXIS2"); 563 if (inputFile->IsCompressedFITS()) 564 entriesToCheck.push_back("ZNAXIS2"); 565 else 566 entriesToCheck.push_back("NAXIS2"); 564 567 entriesToCheck.push_back("NROI"); 565 568 entriesToCheck.push_back("REVISION"); … … 591 594 } 592 595 593 nRows = inputFile->HasKey("NAXIS2") ? inputFile->GetInt("NAXIS2") : 0; 596 nRows = 0; 597 if (inputFile->IsCompressedFITS()) 598 nRows = inputFile->HasKey("ZNAXIS2") ? inputFile->GetInt("ZNAXIS2") : 0; 599 else 600 nRows = inputFile->HasKey("NAXIS2") ? inputFile->GetInt("NAXIS2") : 0; 594 601 nRoi = inputFile->HasKey("NROI") ? inputFile->GetInt("NROI") : 0; 595 602 runNumber = inputFile->HasKey("RUNID") ? inputFile->GetInt("RUNID") : -1;
Note:
See TracChangeset
for help on using the changeset viewer.