Belle II Software  release-08-01-10
ConvertSeqROOTFile.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 import basf2 as b2
13 
14 b2.set_log_level(b2.LogLevel.INFO)
15 
16 # input
17 input = b2.register_module('SeqRootInput')
18 
19 # dump
20 dump = b2.register_module('SeqRootOutput')
21 
22 # progress monitor
23 progress = b2.register_module('Progress')
24 
25 # Create main path
26 main = b2.create_path()
27 
28 # Add modules to main path
29 main.add_module(input)
30 main.add_module(dump)
31 main.add_module(progress)
32 
33 # Process all events
34 b2.process(main)