Belle II Software  release-08-01-10
Reconstruction.py
1 #!/usr/bin/env python3
2 
3 
10 
11 # Reconstruction with EKLM alignment along strips data collection.
12 
13 import basf2
14 from reconstruction import add_reconstruction
15 import sys
16 
17 # Set the global log level
18 basf2.set_log_level(basf2.LogLevel.INFO)
19 
20 input = basf2.register_module('RootInput')
21 input.param('inputFileName', sys.argv[1])
22 
23 gearbox = basf2.register_module('Gearbox')
24 
25 eklm_alignment_along_strips = basf2.register_module('EKLMAlignmentAlongStripsCollector')
26 
27 # Create the main path and add the modules
28 main = basf2.create_path()
29 main.add_module(input)
30 main.add_module("HistoManager", histoFileName=sys.argv[2])
31 main.add_module(gearbox)
32 add_reconstruction(main)
33 main.add_module(eklm_alignment_along_strips)
34 
35 # generate events
36 basf2.process(main)
37 
38 # show call statistics
39 print(basf2.statistics)