Belle II Software  release-05-01-25
des_ser_ROPC_main.cc
1 //+
2 // File : DAQmain.cc
3 // Description : Base class for Module to receive data from outside and store it to DataStore
4 //
5 // Author : Satoru Yamada Itoh, IPNS, KEK
6 // Date : 2 - Aug - 2013
7 //-
8 //#include <daq/rawdata/modules/DAQConsts.h>
9 #include "des_ser_ROPC_main.h"
10 //#include <daq/rawdata/modules/DesSerPrePC.h>
11 //#include <daq/rawdata/DesSerPrePC.h>
12 #include <daq/rawdata/DesSerPrePC.h>
13 //#define MAXEVTSIZE 400000000
14 
15 using namespace std;
16 using namespace Belle2;
17 
18 
19 //-----------------------------------------------------------------
20 // Implementation
21 //-----------------------------------------------------------------
22 
23 int main(int argc, char** argv)
24 {
25 
26  if (argc != 5) {
27 
28  printf("[FATAL] Usage : %s <COPPER hostname> <Use NSM(Network Shared Memory)? yes=1/no=0> <port # to eb0> <NSM nodename>", argv[0]);
29  ;
30  exit(1);
31  }
32 
33  string host_recv = argv[1];
34  int shmflag = atoi(argv[2]);
35  int port_send = atoi(argv[3]);
36  string nodename = argv[4];
37 
38  string host_send = "0.0.0.0";
39  int port_recv = 30000;
40  int nodeid = 0;
41  DesSerPrePC des_ser_prepc(host_recv, port_recv,
42  host_send, port_send, shmflag,
43  nodename, nodeid);
44  des_ser_prepc.DataAcquisition();
45 
46 
47 }
48 
49 
Belle2::DesSerPrePC
A class definition of an input module for Sequential ROOT I/O.
Definition: DesSerPrePC.h:26
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