-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.143 2010-11-24 15:02:11 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.144 2010-12-07 17:33:16 hadaq Exp $";
#define _POSIX_C_SOURCE 199309L
#define SYSLOG_NAMES
syslog(LOG_ERR, " [--lustre path_to_lustre] Output path for writing data on the Lustre cluster (if mounted).");
syslog(LOG_ERR, " [--orapath path] Path to eb_runinfo2ora.txt for writing data to Oracle.");
syslog(LOG_ERR, " [--ignore] Ignore trigger mismatch conditions.");
- syslog(LOG_ERR, " [--maxtrigmismatch number] Maximum number of triggers allowed for missmatch.");
+ syslog(LOG_ERR, " [--maxtrigmismatch number] Maximum number of triggers allowed for mismatch.");
syslog(LOG_ERR, " [--multidisk diskNr] Write data to a disk number provided by daq_disks via shared memory.");
syslog(LOG_ERR,
" The very first file will be written to diskNr provided via --multidisk option.");
HadTuQueue_pop(hadTuQueue[i]);
step = 1;
} else if (trigNr < currTrigNr) {
- if (theArgs->debugOptsCnt)
+ if (theArgs->debugOptsCnt) {
brokenEvtCnt = Debug_fill(theArgs, theStats, theDebug, i, "pop");
+ evtBrokenFlag = 1;
+ }
/* BUGBUG subevt discarded, not in statistic */
HadTuQueue_pop(hadTuQueue[i]);
popCnt++;
if (popCnt > 10000) {
- Debug_printPopTrigMismatch(theArgs, theStats, theDebug, i);
+ if (theArgs->debugOptsCnt)
+ Debug_printPopTrigMismatch(theArgs, theStats, theDebug, i);
goto bailOut1;
}
} else {
- if (theArgs->debugOptsCnt)
+ if (theArgs->debugOptsCnt) {
brokenEvtCnt = Debug_fill(theArgs, theStats, theDebug, i, "broken");
-
+ evtBrokenFlag = 1;
+ }
evtIsBroken = 1;
}
if (HadTuQueue_empty(hadTuQueue[i])) {
if (theArgs->debugOptsCnt) {
if (evtBrokenFlag) {
Debug_print(theArgs, theStats, theDebug);
+ evtBrokenFlag = 0;
}
int iq;
for (iq = 0; iq < theArgs->nrOfMsgs; iq++)
Evt_setDataError(evt);
(*theStats->evtsTagError)++;
- /* Check if triggger missmatch is large enough to exit */
+ /* Check if triger mismatch is large enough to exit */
if (isMismatchCritical(theArgs, theStats)) {
Debug_printBrokenTrigMismatch(theArgs, theStats);
goto bailOut1;
} else {
(*theStats->evtsDiscarded)++;
- /* Check if triggger missmatch is large enough to exit */
+ /* Check if triger mismatch is large enough to exit */
if (isMismatchCritical(theArgs, theStats)) {
Debug_printBrokenTrigMismatch(theArgs, theStats);
goto bailOut1;