Belle II Software
release-05-01-25
assert_parallel_certificate.py
1
# Test for the parallel certified flag in all modules in the standard simulation.
2
3
from
basf2
import
*
4
from
simulation
import
add_simulation
5
6
# Create an empty path
7
path = create_path()
8
9
# Add only the simulation
10
add_simulation(path, bkgfiles=
"some_file"
, simulateT0jitter=
True
)
11
12
# Assert that all modules have a parallel processing certified flag, except for BGOverlayInput at the beginning of the path.
13
modules = path.modules()
14
if
modules[0].name() ==
'BGOverlayInput'
:
15
modules = modules[1:]
16
17
for
m
in
modules:
18
assert
m.has_properties(
19
ModulePropFlags.PARALLELPROCESSINGCERTIFIED),
'%s is missing c_ParallelProcessingCertified flag!'
% (m)
simulation
tests
assert_parallel_certificate.py
Generated on Fri Nov 5 2021 03:56:52 for Belle II Software by
1.8.17