Changeset 16845
- Timestamp:
- 06/14/13 14:21:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsCompressor.cc
r16826 r16845 1116 1116 { 1117 1117 heapSize += _catalog[i][j].first; 1118 // cout << "heapSize: " << heapSize << endl; 1118 1119 //set the catalog offsets to their actual values 1119 1120 _catalog[i][j].second = compressedOffset; … … 1133 1134 } 1134 1135 writeHeader(true); 1136 1135 1137 ostringstream str; 1136 1138 str << _checksum.val(); … … 1730 1732 continue; 1731 1733 outFile.setHeaderKey(i->second.fitsString); 1734 // cout << i->first << endl; 1732 1735 } 1733 1736 … … 1756 1759 drsCalib16[i] = (int16_t)(drsCalibFloat[i]*4096.f/2000.f); 1757 1760 1758 //assign it to the ouput file1759 outFile.setDrsCalib(drsCalib16);1760 1761 1761 1762 //get the start cells offsets … … 1773 1774 if (startCellOffset == -1) 1774 1775 { 1775 cout << "Could not find StartCellData in input file " << fileNameIn << ". Aborting."<< endl; 1776 return -1; 1776 cout << "WARNING: Could not find StartCellData in input file " << fileNameIn << ". Doing it uncalibrated"<< endl; 1777 } 1778 else 1779 { 1780 //assign it to the ouput file 1781 outFile.setDrsCalib(drsCalib16); 1777 1782 } 1778 1783 } … … 1858 1863 } 1859 1864 1860 delete[] drsCalib16; 1865 if (drsCalib16 != NULL) 1866 delete[] drsCalib16; 1861 1867 1862 1868 if (displayText) cout << "Done." << endl; … … 1875 1881 //get a compressed reader 1876 1882 //TEMP try to copy the file too 1877 // string copyName("/scratch/copyFile.fz"); 1883 // string copyName("/gpfs/scratch/fact/etienne/copyFile.fz"); 1884 // string copyName(fileNameOut+".copy"); 1878 1885 string copyName(""); 1879 1886 factfits verifyFile(fileNameOut, copyName, tableName, false); … … 2037 2044 else 2038 2045 { 2039 if ( displayText) cout << "Ok" << endl;2046 if (true) cout << "Ok" << endl; 2040 2047 } 2041 2048
Note:
See TracChangeset
for help on using the changeset viewer.