Belle II Software
development
Toggle main menu visibility
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
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
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
Typedefs
Macros
HexDataPacker.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(
'HexDataPacker'
)
33
# input = register_module('SeqRootInput')
34
# input.param('inputFileName', 'RootOutput1.root')
35
36
# dump
37
# dump = register_module('PrintDataTemplate')
38
dump = b2.register_module(
'SeqRootOutput'
)
39
dump.param(
'outputFileName'
,
'temp.dat'
)
40
41
# Create main path
42
main = b2.create_path()
43
44
# Add modules to main path
45
main.add_module(input)
46
# main.add_module(output)
47
main.add_module(dump)
48
# main.add_module(prog)
49
# Process all events
50
b2.process(main)
rawdata
examples
HexDataPacker.py
Generated on Wed Apr 9 2025 02:44:16 for Belle II Software by
1.9.6