Belle II Software  release-05-01-25
ereco_eventprocessor.cc
1 //+
2 // File : ERecoEventServer.cc
3 // Description : Receive data from event builder 1 and distribute them to
4 // Processing nodes
5 //
6 // Author : Ryosuke Itoh, IPNS, KEK
7 // Date : 24 - June - 2013
8 // Daet : 17 - Oct - 2013, Special version for DESY test nodes
9 //-
10 
11 //#define DESY
12 
13 #include "daq/expreco/ERecoEventProcessor.h"
14 #include "daq/rfarm/manager/RFNSM.h"
15 
16 #include <unistd.h>
17 
18 #include <cstring>
19 
20 using namespace std;
21 using namespace Belle2;
22 
23 int main(int argc, char** argv)
24 {
25  RFConf conf(argv[1]);
26 
27  ERecoEventProcessor* evproc = new ERecoEventProcessor(argv[1]);
28 
29  char nodename[256];
30  strcpy(nodename, "evp_");
31  gethostname(&nodename[4], sizeof(nodename));
32 
33  RFNSM nsm(nodename, evproc);
34  nsm.AllocMem(conf.getconf("system", "nsmdata"));
35  evproc->SetNodeInfo(nsm.GetNodeInfo());
36 
37  evproc->server();
38 
39 }
Belle2::ERecoEventProcessor
Definition: ERecoEventProcessor.h:31
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