Changeset 11181 for trunk/FACT++/src/EventBuilder.c
- Timestamp:
- 06/24/11 16:14:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilder.c
r11134 r11181 48 48 extern void debugHead(int i, void *buf); 49 49 50 extern void debugRead(int isock, int ibyte, int32_t event, int state,50 extern void debugRead(int isock, int ibyte, int32_t event,int32_t ftmevt, int32_t runnr, int state, 51 51 uint32_t tsec, uint32_t tusec ) ; 52 52 extern void debugStream(int isock, void *buf, int len) ; … … 129 129 int evtID ; // event ID of event currently read 130 130 int runID ; // run " 131 uint fadLen ; // FADlength of event currently read 131 int ftmID ; // event ID from FTM 132 uint fadLen ; // FADlength of event currently read 132 133 int fadVers ; // Version of FAD 133 134 int board ; // boardID (softwareID: 0..40 ) … … 612 613 rd[i].bufPos += jrd ; //==> prepare for continuation 613 614 rd[i].bufLen -= jrd ; 614 debugRead(i,jrd,rd[i].evtID, 0,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid; 0=reading data615 debugRead(i,jrd,rd[i].evtID,rd[i].ftmID,rd[i].runID, 0,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid; 0=reading data 615 616 } else { //full dataset read 616 617 rd[i].bufLen = 0 ; … … 624 625 625 626 } 626 debugRead(i,jrd,rd[i].evtID, 1,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid; 1=finished event627 debugRead(i,jrd,rd[i].evtID,rd[i].ftmID,rd[i].runID, 1,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid; 1=finished event 627 628 628 629 //we have a complete buffer, copy to WORK area … … 760 761 rd[i].fadVers= ntohs(rd[i].rBuf->S[2]) ; 761 762 rd[i].evtID = ntohl(rd[i].rBuf->I[4]) ; //(FADevt) 763 rd[i].ftmID = ntohl(rd[i].rBuf->I[5]) ; //(FTMevt) 762 764 rd[i].runID = ntohl(rd[i].rBuf->I[11]) ; 763 765 if (rd[i].runID ==0 ) rd[i].runID = myRun ; … … 766 768 if (rd[i].bufLen <=0 ) rd[i].bufLen = 100000 ; //? 767 769 debugHead(i,rd[i].rBuf); 768 debugRead(i,jrd,rd[i].evtID, -1,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid;-1=start event770 debugRead(i,jrd,rd[i].evtID,rd[i].ftmID,rd[i].runID,-1,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid;-1=start event 769 771 } else { 770 debugRead(i,jrd,0, -2,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid; -2=start event, unknown id yet772 debugRead(i,jrd,0,0,0,-2,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid; -2=start event, unknown id yet 771 773 } 772 774 } else { 773 debugRead(i,jrd,0, -2,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid; -2=start event, unknown id yet775 debugRead(i,jrd,0,0,0,-2,tsec,tusec) ; // i=socket; jrd=#bytes; ievt=eventid; -2=start event, unknown id yet 774 776 } 775 777 … … 1339 1341 1340 1342 1341 /* 1343 1342 1344 xwait.tv_sec = 20;; 1343 1345 xwait.tv_nsec= 0 ; // sleep for ~20sec … … 1357 1359 1358 1360 g_runStat = -1 ; 1359 */ 1361 1360 1362 1361 1363 … … 1423 1425 1424 1426 1425 void debugRead(int isock, int ibyte, int32_t event, int state, uint32_t tsec, uint32_t tusec ) {1427 void debugRead(int isock, int ibyte, int32_t event, int32_t ftmevt, int32_t runnr, int state, uint32_t tsec, uint32_t tusec ) { 1426 1428 // printf("%3d %5d %9d %3d %12d\n",isock, ibyte, event, state, tusec) ; 1427 1429 }
Note:
See TracChangeset
for help on using the changeset viewer.