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