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
16import basf2 as b2
17from simulation import add_simulation
18from reconstruction import add_reconstruction
19
20main = b2.create_path()
21
22# add modules to paths
23main.add_module('EventInfoSetter', evtNumList=[5000])
24main.add_module('ProgressBar')
25main.add_module('EvtGenInput')
26add_simulation(main)
27add_reconstruction(main)
28
29main.add_module('AsyncDisplay', discardOldEvents=True)
30
31b2.process(main)
32print(b2.statistics)