FACT++  1.0
static void DrsCalibrate::SlidingAverage ( float *const  vec,
const uint32_t  roi,
const uint16_t  w 
)
inlinestatic

Definition at line 780 of file DrsCalib.h.

Referenced by EventBuilderWrapper::applyCalib().

781  {
782  if (w==0 || w>roi)
783  return;
784 
785  for (float *pix=vec; pix<vec+1440*roi; pix += roi)
786  {
787  for (float *ptr=pix; ptr<pix+roi-w; ptr++)
788  {
789  for (float *p=ptr+1; p<ptr+w; p++)
790  *ptr += *p;
791  *ptr /= w;
792  }
793  }
794  }

+ Here is the caller graph for this function: