File indexing completed on 2024-07-03 04:18:04
0001 import FWCore.ParameterSet.Config as cms
0002 import re
0003
0004
0005 TYPE_STANDARD_PHYSICS = cms.vint32(1)
0006
0007 algorithms = cms.VPSet()
0008
0009 l1tGTAlgoBlockProducer = cms.EDProducer(
0010 "L1GTAlgoBlockProducer",
0011 algorithms = algorithms
0012 )
0013
0014 def collectAlgorithmPaths(process) -> "tuple[cms.Path]":
0015 str_paths = set()
0016 for algorithm in algorithms:
0017 algo_paths = re.sub(r'[()]'," " , algorithm.expression.value()).split()
0018 for algo in algo_paths:
0019 if algo in process.pathNames() :
0020 str_paths.add(algo)
0021 paths = set()
0022
0023 for str_path in str_paths:
0024 paths.add(getattr(process, str_path))
0025
0026 return tuple(paths)