Belle II Software
release-08-01-10
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
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
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:91
daq
ropc
des_ser_ROPC_main.cc
Generated on Mon Sep 23 2024 14:01:20 for Belle II Software by
1.9.1