Belle II Software  release-05-01-25
assert_parallel_certificate.py
1 # Test for the parallel certified flag in all modules in the standard reconstruction.
2 # It creates a path and fills it with all reconstruction 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 it flag.
5 #
6 #
7 # Author: Nils Braun
8 
9 import basf2
10 import reconstruction
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)
reconstruction.add_reconstruction
def add_reconstruction(path, components=None, pruneTracks=True, add_trigger_calculation=True, skipGeometryAdding=False, trackFitHypotheses=None, addClusterExpertModules=True, use_second_cdc_hits=False, add_muid_hits=False, reconstruct_cdst=None, nCDCHitsMax=6000, nSVDShaperDigitsMax=70000, event_abort=default_event_abort, use_random_numbers_for_hlt_prescale=True)
Definition: reconstruction.py:41