Belle II Software  release-06-01-15
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  RFConf conf(argv[1]);
21 
22  // Creation of event server instance. evs contains the instance
23  // RFEventServer& evs = RFEventServer::Create(argv[1]);
24 
25  ERecoDistributor* evs = new ERecoDistributor(argv[1]);
26 
27 
28  RFNSM nsm(conf.getconf("distributor", "nodename"), evs);
29  nsm.AllocMem(conf.getconf("system", "nsmdata"));
30  evs->SetNodeInfo(nsm.GetNodeInfo());
31 
32  evs->server();
33 
34 }
Abstract base class for different kinds of events.
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:75