Belle II Software
release-06-02-00
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Root2Binary.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', 'RootOutput1.root')
36
37
# dump
38
# dump = register_module('PrintDataTemplate')
39
dump = b2.register_module(
'Root2Binary'
)
40
dump.param(
'outputFileName'
,
'temp.dat'
)
41
42
# Create main path
43
main = b2.create_path()
44
45
# Add modules to main path
46
main.add_module(input)
47
# main.add_module(output)
48
main.add_module(dump)
49
50
# Process all events
51
b2.process(main)
rawdata
examples
Root2Binary.py
Generated on Thu Dec 28 2023 02:30:01 for Belle II Software by
1.9.1