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