Belle II Software  release-05-01-25
assert_parallel_certificate.py
1 # Test for the parallel certified flag in all unpacker modules.
2 # It creates a path and fills it with all unpacker modules, without anything else
3 # (this path can never be executed, but we do not want that anyway).
4 # Then it goes through all modules and checks its flag.
5 #
6 #
7 # Author: Nils Braun
8 
9 import basf2
10 import rawdata
11 
12 # Create an empty path
13 path = basf2.create_path()
14 
15 # Add only the reconstruction
17 
18 # Assert that all modules have a parallel processing certified flag.
19 modules = path.modules()
20 for m in modules:
21  assert m.has_properties(
22  basf2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED), '%s is missing c_ParallelProcessingCertified flag!' % (m)
rawdata.add_unpackers
def add_unpackers(path, components=None, writeKLMDigitRaws=False)
Definition: rawdata.py:62