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
save_geometry_as_root.py
1
#!/usr/bin/env python3
2
3
10
11
19
20
from
basf2
import
Path, process
21
22
main = Path()
23
# EventInfoSetter - generate event meta data
24
main.add_module(
"EventInfoSetter"
, expList=[0], runList=[0], evtNumList=[1])
25
# Geometry parameter loader
26
main.add_module(
'Gearbox'
)
27
# Geometry builder, ignore database and exclude the ECL as we cannot exclude
28
# things when loading Geometry from the database. Alternatively one could
29
# create a database geometry configuration without the ecl.
30
main.add_module(
'Geometry'
, useDB=
False
, excludedComponents=[
'ECL'
,
'Cryostat'
])
31
# Saves the geometry as a Root file
32
main.add_module(
'ExportGeometry'
, Filename=
'Belle2Geo.root'
)
33
# Process one event
34
process(main)
geometry
examples
save_geometry_as_root.py
Generated on Wed Apr 9 2025 02:42:11 for Belle II Software by
1.9.6