Belle II Software
development
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 Tue Nov 12 2024 02:35:50 for Belle II Software by
1.9.6