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