Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
FastSimulation
Tracking
python
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
10
def
_hitSetProducerToFactoryPSet
(producer):
11
_map = {
12
"PixelTripletHLTEDProducer"
:
"PixelTripletHLTGenerator"
,
13
"PixelTripletLargeTipEDProducer"
:
"PixelTripletLargeTipGenerator"
,
14
"MultiHitFromChi2EDProducer"
:
"MultiHitGeneratorFromChi2"
,
15
"CAHitTripletEDProducer"
:
"CAHitTripletGenerator"
,
16
"CAHitQuadrupletEDProducer"
:
"CAHitQuadrupletGenerator"
,
17
}
18
ret = cms.PSet()
19
_copy
(producer, ret)
20
ret.ComponentName = cms.string(_map[producer._TypedParameterizable__type]);
21
return
ret
SeedingMigration._copy
def _copy
Definition:
SeedingMigration.py:4
SeedingMigration._hitSetProducerToFactoryPSet
def _hitSetProducerToFactoryPSet
Definition:
SeedingMigration.py:10
Generated for CMSSW Reference Manual by
1.8.5