test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoTracker
Configuration
python
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)
4
def
customizeMinPtForHitRecoveryInGluedDet
(process,value):
5
for
esp
in
esproducers_by_type
(process,
"Chi2MeasurementEstimatorESProducer"
,
"Chi2ChargeMeasurementEstimatorESProducer"
):
6
esp.MinPtForHitRecoveryInGluedDet = cms.double(value)
7
return
process
8
def
customizeHitRecoveryInGluedDetOff
(process):
9
return
customizeMinPtForHitRecoveryInGluedDet
(process,1000000)
10
def
customizeHitRecoveryInGluedDetOn
(process):
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
customizeMinPtForHitRecoveryInGluedDet
Definition:
customizeMinPtForHitRecoveryInGluedDet.py:1
customizeMinPtForHitRecoveryInGluedDet.customizeHitRecoveryInGluedDetOff
def customizeHitRecoveryInGluedDetOff
Definition:
customizeMinPtForHitRecoveryInGluedDet.py:8
customizeMinPtForHitRecoveryInGluedDet.esproducers_by_type
def esproducers_by_type
Definition:
customizeMinPtForHitRecoveryInGluedDet.py:2
customizeMinPtForHitRecoveryInGluedDet.customizeHitRecoveryInGluedDetOn
def customizeHitRecoveryInGluedDetOn
Definition:
customizeMinPtForHitRecoveryInGluedDet.py:10
customizeMinPtForHitRecoveryInGluedDet.customizeMinPtForHitRecoveryInGluedDet
def customizeMinPtForHitRecoveryInGluedDet
Definition:
customizeMinPtForHitRecoveryInGluedDet.py:4
Generated for CMSSW Reference Manual by
1.8.5