CMS 3D CMS Logo

customiseForTripletsHLTPixelTracksByCellularAutomaton.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoTracker.Configuration.customiseForTripletsByCellularAutomaton 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 
8 
10  for module in producers_by_type(process, "PixelTrackProducer"):
11  tripletModuleName = module.SeedingHitSets.getModuleLabel()
12  tripletModule = getattr(process, tripletModuleName)
13  if tripletModule._TypedParameterizable__type in ["PixelTripletHLTEDProducer", "PixelTripletLargeTipEDProducer"]:
14  customiseNewSeeding(process, tripletModule)
15 
16  return process