FACT++  1.0
static void DrsCalibrate::SubtractStep ( const size_t  ch0,
const double  avg,
float *  vec,
int16_t  roi,
int32_t  pos,
const uint16_t *  map = NULL 
)
inlinestatic

Definition at line 454 of file DrsCalib.h.

References begin, and end.

Referenced by CorrectStep().

455  {
456  if (pos==0 || pos>=roi)
457  return;
458 
459  const int begin = avg>0 ? pos : 0;
460  const int end = avg>0 ? roi : pos;
461 
462  const double sub = fabs(avg);
463 
464  for (int p=0; p<9; p++)
465  {
466  for (int j=begin; j<end; j++)
467  {
468  const size_t hw = ch0+p;
469  const size_t sw = (map?map[hw]:hw)*roi + j;
470 
471  vec[sw] -= sub;
472  }
473  }
474  }
double begin
double end

+ Here is the caller graph for this function: