Belle II Software
release-05-01-25
ReadStore.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
19
20
from
basf2
import
*
21
22
# Set the log level to show only error and fatal messages
23
set_log_level(LogLevel.ERROR)
24
# set_log_level(LogLevel.INFO)
25
26
# input
27
input = register_module(
'RootInput'
)
28
# input = register_module('SeqRootInput')
29
# input.param('inputFileName', '/home/usr/yamadas/e0000r000634.binary') # only for SeqRootInput
30
31
# output
32
output = register_module(
'PrintData'
)
33
34
# dump
35
dump = register_module(
'RootOutput'
)
36
dump.param(
'outputFileName'
,
'temp.root'
)
37
38
# Histogram
39
# hist = register_module('HistoExercise1')
40
41
# Create main path
42
main = create_path()
43
44
# Add modules to main path
45
main.add_module(input)
46
main.add_module(output)
47
# main.add_module(hist)
48
# main.add_module(dump)
49
50
# Process all events
51
process(main)
rawdata
examples
ReadStore.py
Generated on Fri Nov 5 2021 03:56:47 for Belle II Software by
1.8.17