Belle II Software  release-08-01-10
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 
15 import basf2
16 
17 basf2.set_log_level(basf2.LogLevel.INFO)
18 
19 # Create main path
20 main = basf2.create_path()
21 
22 # Event-info setter
23 eventinfosetter = basf2.register_module('EventInfoSetter')
24 main.add_module(eventinfosetter)
25 
26 # Gearbox
27 gearbox = basf2.register_module('Gearbox')
28 main.add_module(gearbox)
29 
30 # Geometry
31 geometry = basf2.register_module('Geometry')
32 geometry.param('components', ['KLM'])
33 geometry.param('useDB', False)
34 geometry.param('createPayloads', True)
35 geometry.param('payloadIov', [0, 0, -1, -1])
36 main.add_module(geometry)
37 
38 # Process the path
39 basf2.process(main)