/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoTracker/Configuration/python/customizeMinPtForHitRecoveryInGluedDet.py
9 строк
583 B
Vincenzo Innocente
Update customizeMinPtForHitRecoveryInGluedDet.py
16 июл 2016, 18:02
16 июл 2016, 18:02
93dbb05
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms def esproducers_by_type(process, *types): return (module for module in process._Process__esproducers.values() if module._TypedParameterizable__type in types) def customizeMinPtForHitRecoveryInGluedDet(process,value): for esp in esproducers_by_type(process, "Chi2MeasurementEstimatorESProducer", "Chi2ChargeMeasurementEstimatorESProducer"): esp.MinPtForHitRecoveryInGluedDet = cms.double(value) return process def customizeHitRecoveryInGluedDetOff(process): return customizeMinPtForHitRecoveryInGluedDet(process,1000000)