CMS 3D CMS Logo

customiseForQuadrupletsHLTPixelTracksByCellularAutomaton.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoTracker.Configuration.customiseForQuadrupletsByCellularAutomaton import customiseNewSeeding
4 
5 def producers_by_type(process, *types):
6  return (module for module in process._Process__producers.values() if module._TypedParameterizable__type in types)
7 
9  for module in producers_by_type(process, "PixelTrackProducer"):
10  quadrupletModuleName = module.SeedingHitSets.getModuleLabel()
11  quadrupletModule = getattr(process, quadrupletModuleName)
12  if quadrupletModule._TypedParameterizable__type == "PixelQuadrupletEDProducer":
13  customiseNewSeeding(process, quadrupletModule)
14 
15  return process