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
async_display.py
1
#!/usr/bin/env python3
2
3
10
11
# example steering file to produce events and show them in the display
12
# without stopping the simulation.
13
# event data is buffered in shared memory, previous events may be overwritten
14
# once the buffer is full.
15
16
import
basf2
as
b2
17
from
simulation
import
add_simulation
18
from
reconstruction
import
add_reconstruction
19
20
main = b2.create_path()
21
22
# add modules to paths
23
main.add_module(
'EventInfoSetter'
, evtNumList=[5000])
24
main.add_module(
'ProgressBar'
)
25
main.add_module(
'EvtGenInput'
)
26
add_simulation(main)
27
add_reconstruction(main)
28
29
main.add_module(
'AsyncDisplay'
, discardOldEvents=
True
)
30
31
b2.process(main)
32
print(b2.statistics)
display
examples
async_display.py
Generated on Sat Apr 12 2025 02:39:28 for Belle II Software by
1.9.6