Belle II Software development
assert_parallel_certificate.py
1
8
9# Test for the parallel certified flag in all unpacker modules.
10# It creates a path and fills it with all unpacker modules, without anything else
11# (this path can never be executed, but we do not want that anyway).
12# Then it goes through all modules and checks its flag.
13
14import basf2
15import rawdata
16
17# Create an empty path
18path = basf2.create_path()
19
20# Add only the reconstruction
22
23# Assert that all modules have a parallel processing certified flag.
24modules = path.modules()
25for m in modules:
26 assert m.has_properties(
27 basf2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED), f'{m} is missing c_ParallelProcessingCertified flag!'
def add_unpackers(path, components=None, writeKLMDigitRaws=False, addTOPRelations=False)
Definition: rawdata.py:67