Belle II Software
release-06-02-00
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
des_ser_COPPER_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 <daq/rawdata/des_ser_COPPER_main.h>
10
#include "des_ser_COPPER_main.h"
11
//#include <daq/rawdata/modules/DesSerPrePC.h>
12
//#include <daq/rawdata/DesSerPrePC.h>
13
#include <daq/rawdata/DesSerCOPPER.h>
14
//#define MAXEVTSIZE 400000000
15
16
using namespace
std;
17
using namespace
Belle2
;
18
19
20
int
main
(
int
argc,
char
** argv)
21
{
22
23
if
(argc != 6) {
24
printf(
"[FATAL] Usage : %s <COPPER hostname> <COPPER node ID> <bit flag of FINNESEs> <Use NSM(Network Shared Memory)? yes=1/no=0> <NSM nodename>"
,
25
argv[0]);
26
// printf("Usage : %s <COPPER hostname> <Use NSM(Network Shared Memory)? yes=1/no=0> <port # to eb0> <NSM nodename>", argv[0]);;
27
exit(1);
28
}
29
30
string
host_recv = argv[1];
31
int
shmflag = atoi(argv[4]);
32
int
port_send = 30000;
33
// int port_send = atoi(argv[3]); //! port number
34
string
nodename = argv[5];
35
string
host_send =
"0.0.0.0"
;
36
int
port_recv = 30000;
37
int
nodeid = atoi(argv[2]);
38
int
finesse_bitflag = atoi(argv[3]);
39
DesSerCOPPER
des_ser_copper(host_recv, port_recv,
40
host_send, port_send, shmflag,
41
nodename, nodeid, finesse_bitflag);
42
des_ser_copper.DataAcquisition();
43
44
45
//
46
// Update EventMetaData
47
//
48
// m_eventMetaDataPtr.create();
49
// m_eventMetaDataPtr->setExperiment(1);
50
// m_eventMetaDataPtr->setRun(1);
51
// m_eventMetaDataPtr->setEvent(1);
52
53
}
54
//}
55
Belle2::DesSerCOPPER
A class definition of an input module for Sequential ROOT I/O.
Definition:
DesSerCOPPER.h:27
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:75
daq
ropc
des_ser_COPPER_main.cc
Generated on Thu Dec 28 2023 02:22:22 for Belle II Software by
1.9.1