Belle II Software  release-08-01-10
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()
Definition: main.py:1
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:91