16#include "daq/expreco/EventSampler.h"
17#include "daq/rfarm/manager/RFConf.h"
22int main(
int argc,
char** argv)
26 printf(
"syntax : eventsampler configfile\n");
32 int nnodes [[maybe_unused]] = 0;
33 int maxnodes = conf->getconfi(
"processor",
"nnodes");
34 int idbase = conf->getconfi(
"processor",
"idbase");
35 char* hostbase = conf->getconf(
"processor",
"ctlhostbase");
36 char* badlist = conf->getconf(
"processor",
"badlist");
38 vector<string> nodelist;
39 char hostname[512], idname[3], shmid[3];
40 for (
int i = 0; i < maxnodes; i++) {
41 sprintf(idname,
"%2.2d", idbase + i);
42 sprintf(shmid,
"%2.2d", i);
43 if (badlist == NULL ||
44 strstr(badlist, idname) == 0) {
45 sprintf(hostname,
"%s%2.2d", hostbase, idbase + i);
46 nodelist.push_back(
string(hostname));
51 int port = conf->getconfi(
"processor",
"eventserver",
"port");
53 char* rbuf = conf->getconf(
"eventsampler",
"ringbufout");
54 int interval = conf->getconfi(
"eventsampler",
"interval");
Abstract base class for different kinds of events.