Ignore:
Timestamp:
06/21/13 17:08:18 (11 years ago)
Author:
lyard
Message:
added correct checksum calculation for compressed fits reader (zfits)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fitsCompressor.cc

    r16848 r16882  
    13801380    //do the checksum
    13811381    _checksum.add(checkSumPointer, sizeToChecksum);
     1382//    cout << endl << "Checksum: " << _checksum.val() << endl;
    13821383    _checkOffset = (4 - extraBytes)%4;
    13831384    //write data to disk
     
    18941895    //figure out its name: /dev/null unless otherwise specified
    18951896    string reconstructedName = fileNameOut+".recons";
    1896 //    reconstructedName = "/dev/null";
     1897    reconstructedName = "/dev/null";
    18971898    reconstructedFile.open(reconstructedName.c_str(), false);
    18981899
     
    20262027//    Do NOT close the verify file, otherwise data cannot be flushed to copy file
    20272028//    verifyFile.close();
     2029    if (!verifyFile.IsFileOk())
     2030        cout << "ERROR: file checksum seems wrong" << endl;
     2031
    20282032    reconstructedFile.close();
    20292033
Note: See TracChangeset for help on using the changeset viewer.