Belle II Software development
write_simulation_steps_for_vr.py
1
8
9'''
10This example shows how to correctly write out the simulation steps into CSV files
11for the Belle II Virtual Reality application.
12'''
13
14import basf2 as b2
15import generators as ge
16import simulation as si
17
18
19# Write out the simulation steps into CSV files
20b2.write_simulation_steps()
21
22
23main = b2.Path()
24
25main.add_module('EventInfoSetter')
26
27# replace it with your favourite generator
28ge.add_kkmc_generator(main, 'mu-mu+')
29
30# the beam background files are "useless" for the virtual reality
31# while it's fundamental to deactivate the T0 jitter simulation
32si.add_simulation(main, simulateT0jitter=False)
33
34main.add_module('Progress')
35
36b2.process(main)
37print(b2.statistics)