Changeset 17678 for trunk/FACT++/src


Ignore:
Timestamp:
04/19/14 01:13:10 (11 years ago)
Author:
tbretz
Message:
It can happen that an event has been created but no header is ever received. If it times out, the header was accessed which is not valid. With the recent fix, I assume that whenever something is received all the rest from the board is received as well, or: half events from one board do not time out.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilder.cc

    r17658 r17678  
    14161416            const shared_ptr<EVT_CTRL2> &evt = *it;
    14171417
     1418            // If there was no memory, it is possible that no header has been processed yet
     1419            // but the event already exists. What we want to check here are only
     1420            // if from partially complete events a baord is missing, not
     1421            // whether the whole event is missing
     1422            if (!evt->valid())
     1423                continue;
     1424
    14181425            // The first event is the oldest. If the first event within the
    1419             // timeout window was received, we can stop searchinf further.
     1426            // timeout window was received, we can stop searching further.
    14201427            if (evt->time.tv_sec+g_evtTimeout>=actTime)
    14211428                break;
Note: See TracChangeset for help on using the changeset viewer.