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