Definition at line 710 of file EventBuilder.cc.
References EVT_CTRL2::FADhead, EVT_CTRL2::fEvent, READ_STRUCT::H, i, NPIX, READ_STRUCT::S, and READ_STRUCT::sockId.
Referenced by mainloop().
714 memcpy(evt->
FADhead+i, &rBuf.
H,
sizeof(PEVNT_HEADER));
716 int src =
sizeof(PEVNT_HEADER) / 2;
719 const uint16_t &roi = rBuf.
S[src+2];
722 EVENT *
event = evt->
fEvent;
723 for (
int px = 0; px < 9; px++)
725 for (
int drs = 0; drs < 4; drs++)
727 const int16_t pixC = rBuf.
S[src+1];
728 const int16_t pixR = rBuf.
S[src+2];
731 const int pixS = i*36 + drs*9 + px;
733 event->StartPix[pixS] = pixC;
735 memcpy(event->Adc_Data + pixS*roi, &rBuf.
S[src+4], roi * 2);
743 const int tmS = i*4 + drs;
748 event->StartTM[tmS] = (pixC + pixR - roi) % 1024;
750 memcpy(event->Adc_Data + tmS*roi +
NPIX*roi, &rBuf.
S[src - roi], roi * 2);
754 event->StartTM[tmS] = -1;