Belle II Software development
save_geometry_as_root.py
1#!/usr/bin/env python3
2
3
10
11
19
20from basf2 import Path, process
21
22main = Path()
23# EventInfoSetter - generate event meta data
24main.add_module("EventInfoSetter", expList=[0], runList=[0], evtNumList=[1])
25# Geometry parameter loader
26main.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.
30main.add_module('Geometry', useDB=False, excludedComponents=['ECL', 'Cryostat'])
31# Saves the geometry as a Root file
32main.add_module('ExportGeometry', Filename='Belle2Geo.root')
33# Process one event
34process(main)