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