Belle II Software development
test_density_scaler.py
1
8
9'''
10Test if the DensityScaler module works.
11N.B.: this test can not be run in a light-release enviroment.
12'''
13
14import basf2 as b2
15import b2test_utils as b2tu
16
17b2tu.skip_test_if_light()
18
19import generators as ge # noqa
20import simulation as si # noqa
21
22
23main = b2.Path()
24
25main.add_module('EventInfoSetter')
26
27main.add_module('Progress')
28
29ge.add_evtgen_generator(main, 'mixed')
30
31# This is the relevant piece of this test.
32main.add_module('DensityScaler', scaling={'BeamPipe': 0.85, 'ECL': 1.5})
33
34si.add_simulation(main)
35
36b2.process(main)