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