25 const int nRead =
cs.size();
35 for (
int ts = 0; ts < nRead; ++ts) {
37 const int capid =
s.capid();
38 const float q =
cs[ts] -
calib.pedestal(capid);
42 raw[ts] =
s.wideRaw();
52 }
else if (0 <= tsToUse && tsToUse < nRead) {
54 const int capid =
s.capid();
66 const int winCenter = nStore / 2;
67 if (tsToUse > winCenter)
68 shift = tsToUse - winCenter;
69 if (
shift + nStore > nRead)
70 shift = nRead - nStore;
75 for (
int i = 0;
i < nStore; ++
i)
76 raw[
i] = digi[
i +
shift].wideRaw();