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