Belle II Software  release-05-01-25
rf_master_local.cc
1 //+
2 // File : rf_master.cc
3 // Description : Master node of RFARM
4 //
5 // Author : Ryosuke Itoh, IPNS, KEK
6 // Date : 31 - Jul - 2013
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  RFConf conf(argv[1]);
17 
18  RFMaster* master = new RFMaster(argv[1]);
19  // Creation of event server instance. evs contains the instance
20  // RFOutputServer& ots = RFOutputServer::Create ( argv[1] );
21 
22  RFNSM nsm(conf.getconf("master", "nodename"), master);
23  nsm.AllocMem(conf.getconf("system", "nsmdata"));
24  master->SetNodeInfo(nsm.GetNodeInfo());
25  master->Hook_Message_Handlers();
26 
27  master->monitor_loop();
28 
29 }
Belle2::RFMaster
Definition: RFMaster.h:22
main
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:77
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::RFNSM
Definition: RFNSM.h:61
Belle2::RFConf
Definition: RFConf.h:24