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