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