- Timestamp:
- 06/28/13 11:57:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/factfits.h
r16560 r16939 62 62 { 63 63 if (*startCell < 0) 64 { 65 data += fNumRoi; 64 66 continue; 65 67 } 66 68 for (uint32_t j=0; j<fNumRoi; j++, data++) 67 69 *data += fOffsetCalibration[i + (*startCell+j)%1024]; … … 79 81 } 80 82 83 const int16_t modStart = startCell[ch] % 1024; 81 84 const int16_t *off = fOffsetCalibration.data() + ch*1024; 82 85 83 const int16_t *cal = off+ startCell[ch];86 const int16_t *cal = off+modStart; 84 87 const int16_t *end = data+fNumRoi; 85 88 86 if ( startCell[ch]+fNumRoi>1024)89 if (modStart+fNumRoi>1024) 87 90 { 88 91 while (cal<off+1024) … … 94 97 *data++ += *cal++; 95 98 } 96 } 99 100 } 97 101 98 102 bool init()
Note:
See TracChangeset
for help on using the changeset viewer.