Definition at line 855 of file DrsCalib.h.
References end, i, and DrsCalibrate::Step::pos.
Referenced by EventBuilderWrapper::applyCalib(), and RawDataViewer::ApplyCalibration().
861 const uint beg = roi>begskip ? begskip : 0;
862 const uint
end = roi-beg>endskip ? roi-endskip : roi;
863 const uint len = end-beg;
867 for (uint
i=0;
i<1440;
i++)
869 const float *vec =
data+
i*roi;
872 double sum = vec[beg];
873 double sum2 = vec[beg]*vec[beg];
875 for (uint j=beg+1; j<
end; j++)
878 sum2 += vec[j]*vec[j];
896 *(ptr+0*1440+
i) = sum;
897 *(ptr+1*1440+
i) = sum2<0 ? 0 : sqrt(sum2);
898 *(ptr+2*1440+
i) = vec[pos];
899 *(ptr+3*1440+
i) = pos;