Belle II Software  release-08-01-10
CheckGeometry.py
1 #!/usr/bin/env python3
2 
3 
10 
11 
15 
16 import basf2 as b2
17 
18 evtmeta = b2.register_module('EventInfoSetter')
19 
20 # Geometry parameter loader
21 gearbox = b2.register_module('Gearbox')
22 gearbox.param('fileName', '/geometry/Beast2_phase1.xml')
23 
24 # Geometry builder
25 geometry = b2.register_module('Geometry')
26 
27 # Overlap checker
28 overlapchecker = b2.register_module('OverlapChecker')
29 
30 # Create main path
31 main = b2.create_path()
32 
33 # Add modules to main path
34 main.add_module(evtmeta)
35 main.add_module(gearbox)
36 main.add_module(geometry)
37 main.add_module(overlapchecker)
38 
39 # Process one event
40 b2.process(main)