CMS 3D CMS Logo

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