Belle II Software development
ereco_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/expreco/ERecoMaster.h"
9#include "daq/rfarm/manager/RFNSM.h"
10
11using namespace std;
12using namespace Belle2;
13
14int main(int argc, char** argv)
15{
16 if (argc < 2) {
17 printf("Wrong number of arguments\n");
18 return 1;
19 }
20
21 RFConf conf(argv[1]);
22
23 ERecoMaster* master = new ERecoMaster(argv[1]);
24
25 RFNSM nsm(conf.getconf("master", "nodename"), master);
26 nsm.AllocMem(conf.getconf("system", "nsmdata"));
27 master->SetNodeInfo(nsm.GetNodeInfo());
28 master->Hook_Message_Handlers();
29
30 master->monitor_loop();
31
32 return 0;
33}
Abstract base class for different kinds of events.
STL namespace.