17def yield_module_names(path):
18 for m
in path.modules():
20 for sub_path
in m.get_all_condition_paths():
21 yield from yield_module_names(sub_path)
24if __name__ ==
"__main__":
25 path = basf2.create_path()
26 add_hlt_processing(path, run_type=RunTypes.beam, softwaretrigger_mode=SoftwareTriggerModes.filter)
28 module_names = list(yield_module_names(path))
29 assert "SoftwareTriggerHLTDQM" in module_names
30 assert "SoftwareTrigger" in module_names
31 assert "Geometry" in module_names
32 assert "Gearbox" in module_names
33 assert "HistoManager" not in module_names