Belle II Software
release-08-02-06
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
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
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
Typedefs
Macros
RFSharedMem.h
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
#ifndef RFSHAREDMEM_H
9
#define RFSHAREDMEM_H
10
11
#define RFSHM_MAX_PROCESS 100
12
#define RFSHM_TYPE_SOCK2RB 1
13
#define RFSHM_TYPE_RB2SOCK 2
14
#define RFSHM_TYPE_STORE 3
15
#define RFSHM_TYPE_BASF2 4
16
#define RFSHM_TYPE_UNUSABLE -1
17
18
#include "SharedMem.h"
19
20
namespace
Belle2
{
26
// Cell to exchange information of client and server
27
struct
RfShm_Cell
{
28
pid_t pid;
29
int
type;
30
int
command;
31
int
par[2];
32
int
retval;
33
int
status;
34
int
nevent;
35
int
nqueue;
36
float
flowrate;
37
float
avesize;
38
float
evtrate;
39
int
elapsed;
40
41
};
42
43
// A collection of cells to be placed on a shared memory
44
struct
RfShm_Data
{
45
int
ncell;
46
char
nodename[16];
47
RfShm_Cell
cell[RFSHM_MAX_PROCESS];
48
};
49
50
// A class to manage cells
51
class
RFSharedMem
:
public
SharedMem
{
52
public
:
53
RFSharedMem
(
const
char
* name);
54
~
RFSharedMem
();
55
56
RfShm_Cell
& GetCell(
int
id
);
57
};
59
}
60
#endif
Belle2::RFSharedMem
Definition:
RFSharedMem.h:51
Belle2::SharedMem
Definition:
SharedMem.h:19
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
Belle2::RfShm_Cell
Definition:
RFSharedMem.h:27
Belle2::RfShm_Data
Definition:
RFSharedMem.h:44
daq
rfarm
manager
include
RFSharedMem.h
Generated on Tue Jan 28 2025 01:53:31 for Belle II Software by
1.9.1