Belle II Software development
ImportGeometry.py
1#!/usr/bin/env python3
2
3
10
11# Create KLM geometry payloads.
12# Note that GeoConfiguration created by this script should not be used except
13# for testing, because it contains the KLM only.
14
15import basf2
16
17basf2.set_log_level(basf2.LogLevel.INFO)
18
19# Create main path
20main = basf2.create_path()
21
22# Event-info setter
23eventinfosetter = basf2.register_module('EventInfoSetter')
24main.add_module(eventinfosetter)
25
26# Gearbox
27gearbox = basf2.register_module('Gearbox')
28main.add_module(gearbox)
29
30# Geometry
31geometry = basf2.register_module('Geometry')
32geometry.param('components', ['KLM'])
33geometry.param('useDB', False)
34geometry.param('createPayloads', True)
35geometry.param('payloadIov', [0, 0, -1, -1])
36main.add_module(geometry)
37
38# Process the path
39basf2.process(main)