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