Belle II Software development
DataCheck.py
1#!/usr/bin/env python3
2
3
10
11# Check collected data.
12
13import sys
14import basf2
15
16basf2.set_log_level(basf2.LogLevel.INFO)
17
18input = basf2.register_module('RootInput')
19input.param('inputFileName', sys.argv[1])
20
21gearbox = basf2.register_module('Gearbox')
22
23eklmdatachecker = basf2.register_module('EKLMDataChecker')
24
25# Create the main path and add the modules
26main = basf2.create_path()
27main.add_module(input)
28main.add_module(gearbox)
29main.add_module(eklmdatachecker)
30
31# Process the data
32basf2.process(main)
33
34# show call statistics
35print(basf2.statistics)