Belle II Software  release-08-01-10
ereco_distributor.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 #include "daq/expreco/ERecoDistributor.h"
9 #include "daq/rfarm/manager/RFNSM.h"
10 
11 #include <unistd.h>
12 
13 #include <cstring>
14 
15 using namespace std;
16 using namespace Belle2;
17 
18 int main(int argc, char** argv)
19 {
20  if (argc < 2) {
21  printf("Wrong number of arguments\n");
22  return 1;
23  }
24  RFConf conf(argv[1]);
25 
26  // Creation of event server instance. evs contains the instance
27  // RFEventServer& evs = RFEventServer::Create(argv[1]);
28 
29  ERecoDistributor* evs = new ERecoDistributor(argv[1]);
30 
31 
32  RFNSM nsm(conf.getconf("distributor", "nodename"), evs);
33  nsm.AllocMem(conf.getconf("system", "nsmdata"));
34  evs->SetNodeInfo(nsm.GetNodeInfo());
35 
36  evs->server();
37  return 0;
38 }
Abstract base class for different kinds of events.
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:91