Belle II Software  release-08-01-10
rf_master_local.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/rfarm/manager/RFMaster.h"
9 #include "daq/rfarm/manager/RFNSM.h"
10 
11 using namespace std;
12 using namespace Belle2;
13 
14 int main(int argc, char** argv)
15 {
16  if (argc < 2) return 1;
17 
18  RFConf conf(argv[1]);
19 
20  RFMaster* master = new RFMaster(argv[1]);
21  // Creation of event server instance. evs contains the instance
22  // RFOutputServer& ots = RFOutputServer::Create ( argv[1] );
23 
24  RFNSM nsm(conf.getconf("master", "nodename"), master);
25  nsm.AllocMem(conf.getconf("system", "nsmdata"));
26  master->SetNodeInfo(nsm.GetNodeInfo());
27  master->Hook_Message_Handlers();
28 
29  master->monitor_loop();
30 
31 }
Abstract base class for different kinds of events.
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:91