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
calculate_dhc_dhe_map.py
1
#!/usr/bin/env python3
2
3
10
11
18
19
20
def
main
():
21
inner = []
22
outer = []
23
det = 0
24
for
updown
in
[0, 1]:
25
layer = 0
26
for
nr
in
[1, 2, 3, 4, 5, 6, 7, 8]:
27
det = layer * 32 + nr * 2 + updown
28
inner.append(det)
29
30
layer = 1
31
for
nr
in
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]:
32
det = layer * 32 + nr * 2 + updown
33
outer.append(det)
34
35
inner.reverse()
36
outer.reverse()
37
38
print(
"packer.param('dhe_to_dhc', ["
)
39
for
i
in
range(0, 8):
40
print(
' ['
, i,
','
, inner.pop(),
','
, inner.pop(),
','
, outer.pop(),
','
, outer.pop(),
','
, outer.pop(),
'] ,'
)
41
print(
'])'
)
42
43
44
main
()
main
Definition:
main.py:1
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:91
pxd
examples
unpacking
calculate_dhc_dhe_map.py
Generated on Tue Jan 28 2025 01:55:26 for Belle II Software by
1.9.1