Apply the drs offset calibration (overload of super-method)
Reimplemented from zofits.
Definition at line 311 of file factofits.h.
References data, fDataOffset, fNumSlices, fOffsetCalibration, fStartCellsOffset, and IsOffsetCalibration().
316 const int16_t* startCell =
reinterpret_cast<int16_t*
>(target_location +
fStartCellsOffset);
317 int16_t*
data =
reinterpret_cast<int16_t*
>(target_location +
fDataOffset);
319 for (uint32_t ch=0; ch<1440; ch++)
321 if (startCell[ch] < 0)
327 const int16_t modStart = startCell[ch]%1024;
330 const int16_t* cal = off+modStart;
333 if (modStart+fNumSlices > 1024)
335 while (cal < off+1024)
340 while (data<end_stride)
int32_t fNumSlices
Number of samples per pixel per event.
int32_t fDataOffset
Offset in bytes for the data.
int32_t fStartCellsOffset
Offset in bytes for the startcell data.
std::vector< int16_t > fOffsetCalibration
The calibration itself.
virtual bool IsOffsetCalibration()
whether or not a calibration was given to the file writer