Belle II Software  release-08-01-10
check_geometry.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 
16 
17 from basf2 import Path, process
18 from sys import argv
19 
20 # Create main path
21 main = Path()
22 # Add modules to main path
23 main.add_module("EventInfoSetter")
24 # Geometry parameter loader
25 main.add_module("Gearbox")
26 # Geometry builder
27 main.add_module("Geometry")
28 # Overlap checker
29 if len(argv) > 1:
30  main.add_module("OverlapChecker", points=int(argv[1]))
31 else:
32  main.add_module("OverlapChecker")
33 # Save overlaps to file to be able to view them with b2display
34 main.add_module("RootOutput", outputFileName="Overlaps.root")
35 # Process one event
36 process(main)