1 import FWCore.ParameterSet.Config
as cms
3 _thresholdsHB = cms.vdouble(0.8, 0.8, 0.8, 0.8)
4 _thresholdsHE = cms.vdouble(0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8)
5 _thresholdsHBphase1 = cms.vdouble(0.1, 0.2, 0.3, 0.3)
6 _thresholdsHEphase1 = cms.vdouble(0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2)
8 _thresholdsHBphase1_2023 = cms.vdouble(0.4, 0.3, 0.3, 0.3)
10 particleFlowRecHitHBHE = cms.EDProducer(
"PFRecHitProducer",
12 name = cms.string(
"PFRecHitHCALDenseIdNavigator"),
13 hcalEnums = cms.vint32(1,2)
15 producers = cms.VPSet(
17 name = cms.string(
"PFHBHERecHitCreator"),
18 src = cms.InputTag(
"hbhereco",
""),
19 qualityTests = cms.VPSet(
21 name = cms.string(
"PFRecHitQTestHCALThresholdVsDepth"),
24 depth=cms.vint32(1, 2, 3, 4),
25 threshold = _thresholdsHB,
26 detectorEnum = cms.int32(1)
29 depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
30 threshold = _thresholdsHE,
31 detectorEnum = cms.int32(2)
36 name = cms.string(
"PFRecHitQTestHCALChannel"),
37 maxSeverities = cms.vint32(11),
38 cleaningThresholds = cms.vdouble(0.0),
39 flags = cms.vstring(
'Standard')
47 from Configuration.Eras.Modifier_run2_HE_2018_cff
import run2_HE_2018
48 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
49 (run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowRecHitHBHE,
50 producers = {0 : dict(qualityTests = {0 : dict(cuts = {1 : dict(threshold = _thresholdsHEphase1) } ) } ) },
54 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
55 run3_HB.toModify(particleFlowRecHitHBHE,
56 producers = {0 : dict(qualityTests = {0 : dict(cuts = {0 : dict(threshold = _thresholdsHBphase1) } ) } ) },
59 from Configuration.Eras.Modifier_run3_egamma_2023_cff
import run3_egamma_2023
60 run3_egamma_2023.toModify(particleFlowRecHitHBHE,
61 producers = {0 : dict(qualityTests = {0 : dict(cuts = {0 : dict(threshold = _thresholdsHBphase1_2023) } ) } ) },
65 particleFlowRecHitHBHEOnly = particleFlowRecHitHBHE.clone(
66 producers = { 0: dict(src =
"hbheprereco") }
68 run3_HB.toModify(particleFlowRecHitHBHEOnly,
69 producers = { 0: dict(src =
"hbhereco") }