Belle II Software  release-06-02-00
ReadStoreTemplate.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 
25 
26 import basf2 as b2
27 from basf2 import conditions as b2conditions
28 
29 # For some runs, this script stops without this.
30 b2conditions.override_globaltags()
31 
32 
33 # Set the log level to show only error and fatal messages
34 # set_log_level(LogLevel.ERROR)
35 b2.set_log_level(b2.LogLevel.INFO)
36 
37 # input
38 input = b2.register_module('SeqRootInput')
39 # input.param('inputFileName', '/x02/data/e0000r000554.sroot')
40 
41 # output
42 output = b2.register_module('PrintDataTemplate')
43 
44 # unpack = register_module('CDCUnpacker')
45 
46 dump = b2.register_module('RootOutput')
47 prog = b2.register_module('Progress')
48 
49 # Create main path
50 main = b2.create_path()
51 
52 # Add modules to main path
53 main.add_module(input)
54 main.add_module(output)
55 # main.add_module(dump)
56 # main.add_module(unpack)
57 main.add_module(prog)
58 
59 # Process all events
60 b2.process(main)