Changeset 17685
- Timestamp:
- 04/24/14 11:16:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/zfits.h
r17650 r17685 276 276 { 277 277 if (row == fRow+1) 278 fRawsum.add(fBufferRow , false);278 fRawsum.add(fBufferRow); 279 279 } 280 280 … … 300 300 //const int64_t currentSubTile = currentTile % fShrinkFactor; 301 301 302 // Is this the first tile we read at all? 303 const bool isFirstTile = fCurrentRow<0; 304 305 // Is this just the next tile in the sequence? 306 const bool isNextTile = requestedTile==currentTile+1 || isFirstTile; 307 302 308 fCurrentRow = rowNum; 303 309 304 // Is this just the next tile in the sequence?305 const bool isNextTile = requestedTile==currentTile+1;306 307 310 // Do we have to read a new tile from disk? 308 if (requestedTile!=currentTile )311 if (requestedTile!=currentTile || isFirstTile) 309 312 { 310 313 //skip to the beginning of the tile … … 316 319 // seek for the sub tile. If we were just reading the previous one 317 320 // we can skip that. 318 if (!isNextTile || requestedTile==0)321 if (!isNextTile || isFirstTile) 319 322 { 320 323 // step to the beginnig of the super tile … … 383 386 384 387 385 // If we are reading sequentially, calcua kte checksum388 // If we are reading sequentially, calcualte checksum 386 389 if (isNextTile) 387 390 { 388 // std::cout << "Updating checksum" << std::endl;389 391 // Padding for checksum calculation 390 392 memset(fCompressedBuffer.data(), 0, offset);
Note:
See TracChangeset
for help on using the changeset viewer.