Belle II Software  release-05-01-25
ereco_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/expreco/ERecoMaster.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  ERecoMaster* master = new ERecoMaster(argv[1]);
19 
20  RFNSM nsm(conf.getconf("master", "nodename"), master);
21  nsm.AllocMem(conf.getconf("system", "nsmdata"));
22  master->SetNodeInfo(nsm.GetNodeInfo());
23  master->Hook_Message_Handlers();
24 
25  master->monitor_loop();
26 
27 }
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::ERecoMaster
Definition: ERecoMaster.h:22
Belle2::RFNSM
Definition: RFNSM.h:61
Belle2::RFConf
Definition: RFConf.h:24