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