File indexing completed on 2024-04-06 12:27:25
0001 import FWCore.ParameterSet.Config as cms
0002
0003 particleFlowRecHitHO = cms.EDProducer("PFRecHitProducer",
0004 navigator = cms.PSet(
0005 name = cms.string("PFRecHitHCALDenseIdNavigator"),
0006 hcalEnums = cms.vint32(3)
0007 ),
0008 producers = cms.VPSet(
0009 cms.PSet(
0010 name = cms.string("PFHORecHitCreator"),
0011 src = cms.InputTag("horeco",""),
0012 qualityTests = cms.VPSet(
0013 cms.PSet(
0014 name = cms.string("PFRecHitQTestHOThreshold"),
0015 threshold_ring0 = cms.double(0.4),
0016 threshold_ring12 = cms.double(1.0)
0017 ),
0018
0019
0020
0021
0022 cms.PSet(
0023 name = cms.string("PFRecHitQTestHCALChannel"),
0024 maxSeverities = cms.vint32(11),
0025 cleaningThresholds = cms.vdouble(0.0),
0026 flags = cms.vstring('Standard')
0027 )
0028 )
0029 )
0030 )
0031
0032 )
0033
0034
0035
0036
0037
0038 def _modifyParticleFlowRecHitHOForRun2( object ) :
0039 """
0040 Customises PFRecHitProducer for Run 2 by lowering the
0041 HO threshold for SiPM
0042 """
0043 for prod in object.producers:
0044 prod.qualityTests = cms.VPSet(
0045 cms.PSet(
0046 name = cms.string("PFRecHitQTestThreshold"),
0047 threshold = cms.double(0.05)
0048 ),
0049 cms.PSet(
0050 name = cms.string("PFRecHitQTestHCALChannel"),
0051 maxSeverities = cms.vint32(11),
0052 cleaningThresholds = cms.vdouble(0.0),
0053 flags = cms.vstring('Standard')
0054 )
0055 )
0056
0057 from Configuration.Eras.Modifier_run2_common_cff import run2_common
0058 run2_common.toModify( particleFlowRecHitHO, func=_modifyParticleFlowRecHitHOForRun2 )