11#include "daq/rfarm/manager/RFEventProcessor.h"
12#include "daq/rfarm/manager/RFNSM.h"
24extern "C" void sighandler(
int )
26 printf(
"SIGTERM handler here\n");
30int main(
int argc,
char** argv)
32 if (argc < 2)
return 1;
39 char nodename[256 + 4];
40 strcpy(nodename,
"evp_");
42 gethostname(&nodename[4],
sizeof(nodename) - 4);
45 char hostnamebuf[256];
46 gethostname(hostnamebuf,
sizeof(hostnamebuf));
47 strcat(&nodename[4], &hostnamebuf[6]);
48 int lend = strlen(nodename);
49 nodename[lend + 1] = (char)0;
50 nodename[lend] = nodename[lend - 1];
51 strncpy(&nodename[lend - 1],
"0", 1);
52 printf(
"DESY node name = %s\n", nodename);
56 signal(SIGINT, sighandler);
57 signal(SIGTERM, sighandler);
59 RFNSM nsm(nodename, evproc);
60 nsm.AllocMem(conf.getconf(
"system",
"nsmdata"));
61 evproc->SetNodeInfo(nsm.GetNodeInfo());
Abstract base class for different kinds of events.