Belle II Software
release-06-02-00
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
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
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
save_geometry_as_root.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
20
21
from
basf2
import
Path, process
22
23
main = Path()
24
# EventInfoSetter - generate event meta data
25
main.add_module(
"EventInfoSetter"
, expList=[0], runList=[0], evtNumList=[1])
26
# Geometry parameter loader
27
main.add_module(
'Gearbox'
)
28
# Geometry builder, ignore database and exclude the ECL as we cannot exclude
29
# things when loading Geometry from the database. Alternatively one could
30
# create a database geometry configuration without the ecl.
31
main.add_module(
'Geometry'
, useDB=
False
, excludedComponents=[
'ECL'
,
'Cryostat'
])
32
# Saves the geometry as a Root file
33
main.add_module(
'ExportGeometry'
, Filename=
'Belle2Geo.root'
)
34
# Process one event
35
process(main)
geometry
examples
save_geometry_as_root.py
Generated on Thu Dec 28 2023 02:27:19 for Belle II Software by
1.9.1