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