static char *rcsId =
- "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.79 2007-10-05 09:17:26 hadaq Exp $";
+ "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.80 2008-03-31 17:54:40 hadaq Exp $";
#define _POSIX_C_SOURCE 199309L
#include "ansiTape.h"
#include "genid32.h"
-#define MAXINPATH 32
+#define MAXINPATH 100
#define NEVTIDS 64UL /* must be 2^n */
#define NEVTIDS_IN_FILE 0UL /* must be 2^n */
unsigned long *evtsTagError;
unsigned long *bytesWritten;
unsigned long *evtId[NEVTIDS];
- unsigned long *trigNr[32];
+ unsigned long *trigNr[MAXINPATH];
unsigned long *evtsRes;
} TheStats;
}
static void
-storeInfoStop (const char *n, time_t t, Worker * w)
+storeInfoStop (const char *n, time_t t, Worker * w, TheArgs * my)
{
Param pS, *p = &pS;
int i;
conSetupParam (p, getenv ("DAQ_SETUP"));
- for (i = 0; i < 32 && strcmp (w->statistics[i].name, "") != 0; i++)
+ for (i = 0; i < my->nrOfMsgs && strcmp (w->statistics[i].name, "") != 0; i++)
{
Param_storeInt (p, n, w->statistics[i].name, w->statistics[i].value);
}
argsDefault (theArgs);
argsFromParam (theArgs, argc, argv);
+
+ printf("theArgs->varQSizeCnt = %d\n",theArgs->varQSizeCnt);
+
+ for (i = 0; i < theArgs->varQSizeCnt; i++) {
+ printf("theArgs->varQSize = %d\n", theArgs->varQSize[i]);
+ }
+
+ printf("theArgs->queueSize: %d\n", theArgs->queueSize);
+ printf("theArgs->nrOfMsgs: %d\n", theArgs->nrOfMsgs);
+ printf("theArgs->outPath: %s\n", theArgs->outPath);
+ printf("theArgs->outDev: %s\n", theArgs->outDev);
+
if (0 > argsFromCL (theArgs, argc, argv))
{
usage (argv[0]);
ourTime = time (NULL);
closeFile ();
- storeInfoStop (argv[0], ourTime - 2, worker);
+ storeInfoStop (argv[0], ourTime - 2, worker, theArgs);
/* store simple stop run info */
storeRunInfoStop(ourTime - 2, theArgs, theStats);
{
closeRESFile (theArgs);
}
- storeInfoStop (argv[0], ourTime - 2, worker);
+ storeInfoStop (argv[0], ourTime - 2, worker, theArgs);
/* store simple stop run info */
storeRunInfoStop(ourTime - 2, theArgs, theStats);