Belle II Software
development
Toggle main menu visibility
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
Enumerator
c
d
f
p
t
v
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
misalignVXDRandom.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
Generate alignment payload for VXD
13
14
"""
15
16
import
basf2
as
b2
17
18
from
alignment.utils
import
AlignmentGeneratorConfig
19
20
alignment = AlignmentGeneratorConfig()
21
# 100 um normal distribution for all shifts
22
alignment.gen_u_gaus(
'0.0.0'
, 0.01)
23
alignment.gen_v_gaus(
'0.0.0'
, 0.01)
24
alignment.gen_w_gaus(
'0.0.0'
, 0.01)
25
# -1 mrad to +1 mrad uniform distribution for all angles
26
alignment.gen_alpha_uniform(
'0.0.0'
, 0.001)
27
alignment.gen_beta_uniform(
'0.0.0'
, 0.001)
28
alignment.gen_gamma_uniform(
'0.0.0'
, 0.001)
29
30
alignment.set_all(
'1.1.1'
, 0.0)
31
32
main = b2.create_path()
33
main.add_module(
'EventInfoSetter'
)
34
main.add_module(
'Gearbox'
)
35
main.add_module(
'Geometry'
, components=[
'PXD'
,
'SVD'
])
36
main.add_module(
'AlignmentGenerator'
, payloadIov=[0, 0, -1, -1], payloadName=
""
, data=alignment.get_data(), createPayload=
True
)
37
main.add_module(
'Progress'
)
38
39
b2.process(main)
40
print(b2.statistics)
alignment.utils
Definition:
utils.py:1
alignment
examples
misalignVXDRandom.py
Generated on Thu Apr 10 2025 02:29:09 for Belle II Software by
1.9.6