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