Belle II Software
light-2212-foldex
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
# -*- coding: utf-8 -*-
3
4
11
12
16
17
from
basf2
import
Path, process
18
from
sys
import
argv
19
20
# Create main path
21
main = Path()
22
# Add modules to main path
23
main.add_module(
"EventInfoSetter"
)
24
# Geometry parameter loader
25
main.add_module(
"Gearbox"
)
26
# Geometry builder
27
main.add_module(
"Geometry"
)
28
# Overlap checker
29
if
len(argv) > 1:
30
main.add_module(
"OverlapChecker"
, points=int(argv[1]))
31
else
:
32
main.add_module(
"OverlapChecker"
)
33
# Save overlaps to file to be able to view them with b2display
34
main.add_module(
"RootOutput"
, outputFileName=
"Overlaps.root"
)
35
# Process one event
36
process(main)
geometry
examples
check_geometry.py
Generated on Sun Jan 15 2023 23:32:56 for Belle II Software by
1.9.1