Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:51

0001 import FWCore.ParameterSet.Config as cms
0002 import copy
0003 
0004 def _copy(old, new, skip=[]):
0005     skipSet = set(skip)
0006     for key in old.parameterNames_():
0007         if key not in skipSet:
0008             setattr(new, key, copy.deepcopy(getattr(old, key)))
0009 
0010 def _hitSetProducerToFactoryPSet(producer):
0011     _map = {
0012         "PixelTripletHLTEDProducer": "PixelTripletHLTGenerator",
0013         "PixelTripletLargeTipEDProducer": "PixelTripletLargeTipGenerator",
0014         "MultiHitFromChi2EDProducer": "MultiHitGeneratorFromChi2",
0015         "CAHitTripletEDProducer": "CAHitTripletGenerator",
0016         "CAHitQuadrupletEDProducer": "CAHitQuadrupletGenerator",   
0017         }
0018     ret = cms.PSet()
0019     _copy(producer, ret)
0020     ret.ComponentName = cms.string(_map[producer._TypedParameterizable__type]);
0021     return ret