Belle II Software  release-08-01-10
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 
14 import basf2
15 import rawdata
16 
17 # Create an empty path
18 path = basf2.create_path()
19 
20 # Add only the reconstruction
22 
23 # Assert that all modules have a parallel processing certified flag.
24 modules = path.modules()
25 for m in modules:
26  assert m.has_properties(
27  basf2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED), '%s is missing c_ParallelProcessingCertified flag!' % (m)
def add_unpackers(path, components=None, writeKLMDigitRaws=False, addTOPRelations=False)
Definition: rawdata.py:67