test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customizeMinPtForHitRecoveryInGluedDet.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 def esproducers_by_type(process, *types):
3  return (module for module in process._Process__esproducers.values() if module._TypedParameterizable__type in types)
5  for esp in esproducers_by_type(process, "Chi2MeasurementEstimatorESProducer", "Chi2ChargeMeasurementEstimatorESProducer"):
6  esp.MinPtForHitRecoveryInGluedDet = cms.double(value)
7  return process
9  return customizeMinPtForHitRecoveryInGluedDet(process,1000000)
11  process = customizeMinPtForHitRecoveryInGluedDet(process,0.9)
12  if hasattr(process, "Chi2MeasurementEstimatorForP5"): # keep disabled for cosmics
13  process.Chi2MeasurementEstimatorForP5.MinPtForHitRecoveryInGluedDet = 100000
14  return process
15 
16