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
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 Sun Jan 15 2023 23:32:57 for Belle II Software by
1.9.1