File indexing completed on 2023-04-18 05:15:14
0001 import FWCore.ParameterSet.Config as cms
0002
0003 _thresholdsHB = cms.vdouble(0.8, 0.8, 0.8, 0.8)
0004 _thresholdsHE = cms.vdouble(0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8)
0005 _thresholdsHBphase1 = cms.vdouble(0.1, 0.2, 0.3, 0.3)
0006 _thresholdsHEphase1 = cms.vdouble(0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2)
0007
0008 _thresholdsHBphase1_2023 = cms.vdouble(0.4, 0.3, 0.3, 0.3)
0009
0010 particleFlowRecHitHBHE = cms.EDProducer("PFRecHitProducer",
0011 navigator = cms.PSet(
0012 name = cms.string("PFRecHitHCALDenseIdNavigator"),
0013 hcalEnums = cms.vint32(1,2)
0014 ),
0015 producers = cms.VPSet(
0016 cms.PSet(
0017 name = cms.string("PFHBHERecHitCreator"),
0018 src = cms.InputTag("hbhereco",""),
0019 qualityTests = cms.VPSet(
0020 cms.PSet(
0021 name = cms.string("PFRecHitQTestHCALThresholdVsDepth"),
0022 cuts = cms.VPSet(
0023 cms.PSet(
0024 depth=cms.vint32(1, 2, 3, 4),
0025 threshold = _thresholdsHB,
0026 detectorEnum = cms.int32(1)
0027 ),
0028 cms.PSet(
0029 depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
0030 threshold = _thresholdsHE,
0031 detectorEnum = cms.int32(2)
0032 )
0033 )
0034 ),
0035 cms.PSet(
0036 name = cms.string("PFRecHitQTestHCALChannel"),
0037 maxSeverities = cms.vint32(11),
0038 cleaningThresholds = cms.vdouble(0.0),
0039 flags = cms.vstring('Standard')
0040 )
0041 )
0042 ),
0043 )
0044 )
0045
0046
0047 from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
0048 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
0049 (run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowRecHitHBHE,
0050 producers = {0 : dict(qualityTests = {0 : dict(cuts = {1 : dict(threshold = _thresholdsHEphase1) } ) } ) },
0051 )
0052
0053
0054 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
0055 run3_HB.toModify(particleFlowRecHitHBHE,
0056 producers = {0 : dict(qualityTests = {0 : dict(cuts = {0 : dict(threshold = _thresholdsHBphase1) } ) } ) },
0057 )
0058
0059 from Configuration.Eras.Modifier_run3_egamma_2023_cff import run3_egamma_2023
0060 run3_egamma_2023.toModify(particleFlowRecHitHBHE,
0061 producers = {0 : dict(qualityTests = {0 : dict(cuts = {0 : dict(threshold = _thresholdsHBphase1_2023) } ) } ) },
0062 )
0063
0064
0065 particleFlowRecHitHBHEOnly = particleFlowRecHitHBHE.clone(
0066 producers = { 0: dict(src = "hbheprereco") }
0067 )
0068 run3_HB.toModify(particleFlowRecHitHBHEOnly,
0069 producers = { 0: dict(src = "hbhereco") }
0070 )