Belle II Software  release-06-02-00
ReadStore.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 
25 
26 import basf2 as b2
27 
28 # Set the log level to show only error and fatal messages
29 b2.set_log_level(b2.LogLevel.ERROR)
30 # set_log_level(LogLevel.INFO)
31 
32 # input
33 input = b2.register_module('RootInput')
34 # input = register_module('SeqRootInput')
35 # input.param('inputFileName', '/home/usr/yamadas/e0000r000634.binary') # only for SeqRootInput
36 
37 # output
38 output = b2.register_module('PrintData')
39 
40 # dump
41 dump = b2.register_module('RootOutput')
42 dump.param('outputFileName', 'temp.root')
43 
44 # Histogram
45 # hist = register_module('HistoExercise1')
46 
47 # Create main path
48 main = b2.create_path()
49 
50 # Add modules to main path
51 main.add_module(input)
52 main.add_module(output)
53 # main.add_module(hist)
54 # main.add_module(dump)
55 
56 # Process all events
57 b2.process(main)