Changeset 15471 for trunk/FACT++/src/EventBuilder.c
- Timestamp:
- 05/01/13 11:22:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilder.c
r15470 r15471 1340 1340 evtCtrl[idx].board[board] = board; 1341 1341 evtCtrl[idx].nBoard++; 1342 evtCtrl[idx].evtStat 1342 evtCtrl[idx].evtStat = evtCtrl[idx].nBoard; 1343 1343 1344 1344 // have we already reported first (partial) event of this run ??? … … 1424 1424 1425 1425 // Check the less likely case: 'useless' or 'delete' 1426 // evtState==0 can happen if the event was initialized (some data received) 1427 // but the data did not make sense (e.g. inconsistent rois) 1426 1428 if (evtCtrl[k0].evtStat==0 || evtCtrl[k0].evtStat >= 9000) 1427 1429 { … … 1430 1432 1431 1433 if (k0==evtCtrl_frstPtr) 1432 { 1433 evtCtrl_frstPtr++; 1434 evtCtrl_frstPtr %= MAX_EVT * MAX_RUN; 1435 } 1434 evtCtrl_frstPtr = (evtCtrl_frstPtr+1) % MAX_EVT * MAX_RUN; 1436 1435 else 1437 factPrintf(k Debug, -1, "Freed a non-first slot");1436 factPrintf(kError, -1, "Freed a non-first slot"); 1438 1437 1439 1438 gj.evtWrite++; … … 1546 1545 for (int k0=evtCtrl_frstPtr; k0!=evtCtrl_lastPtr; k0++, k0 %= MAX_EVT*MAX_RUN) 1547 1546 { 1548 if (evtCtrl[k0].evtStat > minclear)1547 if (evtCtrl[k0].evtStat==0 || evtCtrl[k0].evtStat > minclear) 1549 1548 { 1550 1549 mBufFree(k0); //event written--> free memory … … 1552 1551 1553 1552 if (k0==evtCtrl_frstPtr) 1554 { 1555 evtCtrl_frstPtr++; 1556 evtCtrl_frstPtr %= MAX_EVT * MAX_RUN; 1557 } 1553 evtCtrl_frstPtr = (evtCtrl_frstPtr+1) % MAX_EVT * MAX_RUN; 1558 1554 else 1559 factPrintf(kDebug, -1, "Freed a non-first slot"); 1555 factPrintf(kError, -1, "Freed a non-first slot"); 1556 1557 continue; 1560 1558 } 1561 else 1562 1563 1559 1560 if (evtCtrl[k0].evtStat > 0) 1561 numclear++; //writing is still ongoing... 1564 1562 } 1565 1563
Note:
See TracChangeset
for help on using the changeset viewer.