Belle II Software
light-2403-persian
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
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
Variables
Typedefs
a
b
c
d
l
m
n
p
r
s
w
Enumerations
Enumerator
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
_
c
d
e
f
h
i
m
o
p
r
s
t
v
w
Enumerations
b
c
e
g
h
m
p
s
t
v
Enumerator
b
c
k
t
Related Functions
Files
File List
File Members
All
Functions
check_geometry.py
1
#!/usr/bin/env python3
2
3
10
11
15
16
from
basf2
import
Path, process
17
from
sys
import
argv
18
19
# Create main path
20
main = Path()
21
# Add modules to main path
22
main.add_module(
"EventInfoSetter"
)
23
# Geometry parameter loader
24
main.add_module(
"Gearbox"
)
25
# Geometry builder
26
main.add_module(
"Geometry"
)
27
# Overlap checker
28
if
len(argv) > 1:
29
main.add_module(
"OverlapChecker"
, points=int(argv[1]))
30
else
:
31
main.add_module(
"OverlapChecker"
)
32
# Save overlaps to file to be able to view them with b2display
33
main.add_module(
"RootOutput"
, outputFileName=
"Overlaps.root"
)
34
# Process one event
35
process(main)
geometry
examples
check_geometry.py
Generated on Fri Apr 12 2024 06:51:42 for Belle II Software by
1.9.1