Belle II Software  release-05-02-19
CheckErrorEvent.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
19 
20 from basf2 import *
21 
22 # Set the log level to show only error and fatal messages
23 # set_log_level(LogLevel.ERROR)
24 set_log_level(LogLevel.INFO)
25 
26 # input
27 input = register_module('SeqRootInput')
28 # input.param('inputFileName', '/x02/data/e0000r000554.sroot')
29 
30 # output
31 output = register_module('CheckErrorEvent')
32 
33 prog = register_module('Progress')
34 
35 # Create main path
36 main = create_path()
37 
38 # Add modules to main path
39 main.add_module(input)
40 main.add_module(output)
41 main.add_module(prog)
42 
43 # Process all events
44 process(main)