Belle II Software
release-05-01-25
Root2Binary.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', 'RootOutput1.root')
30
31
# dump
32
# dump = register_module('PrintDataTemplate')
33
dump = register_module(
'Root2Binary'
)
34
dump.param(
'outputFileName'
,
'temp.dat'
)
35
36
# Create main path
37
main = create_path()
38
39
# Add modules to main path
40
main.add_module(input)
41
# main.add_module(output)
42
main.add_module(dump)
43
44
# Process all events
45
process(main)
rawdata
examples
Root2Binary.py
Generated on Fri Nov 5 2021 03:56:48 for Belle II Software by
1.8.17