/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FastSimulation/Tracking/python/SeedingMigration.py
21 строка
784 B
Angira Rastogi
Preparing CA generators for use in FastSim
29 май 2018, 08:45
29 май 2018, 08:45
308fe73
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms import copy def _copy(old, new, skip=[]): skipSet = set(skip) for key in old.parameterNames_(): if key not in skipSet: setattr(new, key, copy.deepcopy(getattr(old, key))) def _hitSetProducerToFactoryPSet(producer): _map = { "PixelTripletHLTEDProducer": "PixelTripletHLTGenerator", "PixelTripletLargeTipEDProducer": "PixelTripletLargeTipGenerator", "MultiHitFromChi2EDProducer": "MultiHitGeneratorFromChi2", "CAHitTripletEDProducer": "CAHitTripletGenerator", "CAHitQuadrupletEDProducer": "CAHitQuadrupletGenerator", } ret = cms.PSet() _copy(producer, ret) ret.ComponentName = cms.string(_map[producer._TypedParameterizable__type]); return ret