Belle II Software development
des_ser_ROPC_main.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/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
15using namespace std;
16using namespace Belle2;
17
18
19//-----------------------------------------------------------------
20// Implementation
21//-----------------------------------------------------------------
22
23int 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
A class definition of an input module for Sequential ROOT I/O.
Definition: DesSerPrePC.h:26
Abstract base class for different kinds of events.
STL namespace.