CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
SeedingMigration Namespace Reference

Functions

def _copy
 
def _hitSetProducerToFactoryPSet
 

Function Documentation

def SeedingMigration._copy (   old,
  new,
  skip = [] 
)
private

Definition at line 4 of file SeedingMigration.py.

Referenced by _hitSetProducerToFactoryPSet().

4 
5 def _copy(old, new, skip=[]):
6  skipSet = set(skip)
7  for key in old.parameterNames_():
8  if key not in skipSet:
9  setattr(new, key, copy.deepcopy(getattr(old, key)))
def SeedingMigration._hitSetProducerToFactoryPSet (   producer)
private

Definition at line 10 of file SeedingMigration.py.

References _copy().

10 
11 def _hitSetProducerToFactoryPSet(producer):
12  _map = {
13  "PixelTripletHLTEDProducer": "PixelTripletHLTGenerator",
14  "PixelTripletLargeTipEDProducer": "PixelTripletLargeTipGenerator",
15  "MultiHitFromChi2EDProducer": "MultiHitGeneratorFromChi2",
16  "CAHitTripletEDProducer": "CAHitTripletGenerator",
17  "CAHitQuadrupletEDProducer": "CAHitQuadrupletGenerator",
18  }
19  ret = cms.PSet()
20  _copy(producer, ret)
21  ret.ComponentName = cms.string(_map[producer._TypedParameterizable__type]);
22  return ret