Belle II Software  release-08-01-10
ereco_eventprocessor.cc
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 //#define DESY
10 
11 #include "daq/expreco/ERecoEventProcessor.h"
12 #include "daq/rfarm/manager/RFNSM.h"
13 
14 #include <unistd.h>
15 
16 #include <cstring>
17 
18 using namespace std;
19 using namespace Belle2;
20 
21 int main(int argc, char** argv)
22 {
23  if (argc < 2) {
24  printf("Wrong number of arguments\n");
25  return 1;
26  }
27  RFConf conf(argv[1]);
28 
29  ERecoEventProcessor* evproc = new ERecoEventProcessor(argv[1]);
30 
31  char nodename[256 + 4];
32  strcpy(nodename, "evp_");
33  gethostname(&nodename[4], sizeof(nodename) - 4);
34 
35  RFNSM nsm(nodename, evproc);
36  nsm.AllocMem(conf.getconf("system", "nsmdata"));
37  evproc->SetNodeInfo(nsm.GetNodeInfo());
38 
39  evproc->server();
40 
41  return 0;
42 }
Abstract base class for different kinds of events.
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:91