Belle II Software
release-05-01-25
save_geometry_as_root.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
14
15
from
basf2
import
Path, process
16
17
main = Path()
18
# EventInfoSetter - generate event meta data
19
main.add_module(
"EventInfoSetter"
, expList=[0], runList=[0], evtNumList=[1])
20
# Geometry parameter loader
21
main.add_module(
'Gearbox'
)
22
# Geometry builder, ignore database and exclude the ECL as we cannot exclude
23
# things when loading Geometry from the database. Alternatively one could
24
# create a database geometry configuration without the ecl.
25
main.add_module(
'Geometry'
, useDB=
False
, excludedComponents=[
'ECL'
,
'Cryostat'
])
26
# Saves the geometry as a Root file
27
main.add_module(
'ExportGeometry'
, Filename=
'Belle2Geo.root'
)
28
# Process one event
29
process(main)
geometry
examples
save_geometry_as_root.py
Generated on Fri Nov 5 2021 03:54:27 for Belle II Software by
1.8.17