CMS 3D CMS Logo

SeedingMigration.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def _copy(old, new, skip=[]):
4  skipSet = set(skip)
5  for key in old.parameterNames_():
6  if key not in skipSet:
7  setattr(new, key, getattr(old, key))
8 
10  _map = {
11  "PixelTripletHLTEDProducer": "PixelTripletHLTGenerator",
12  "PixelTripletLargeTipEDProducer": "PixelTripletLargeTipGenerator",
13  "MultiHitFromChi2EDProducer": "MultiHitGeneratorFromChi2",
14  }
15  ret = cms.PSet()
16  _copy(producer, ret)
17  ret.ComponentName = cms.string(_map[producer._TypedParameterizable__type]);
18  return ret
def _hitSetProducerToFactoryPSet(producer)
def _copy(old, new, skip=[])