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 particleFlowRecHitHBHE = cms.EDProducer(
"PFRecHitProducer",
10 name = cms.string(
"PFRecHitHCALDenseIdNavigator"),
11 hcalEnums = cms.vint32(1,2)
13 producers = cms.VPSet(
15 name = cms.string(
"PFHBHERecHitCreator"),
16 src = cms.InputTag(
"hbhereco",
""),
17 qualityTests = cms.VPSet(
19 name = cms.string(
"PFRecHitQTestHCALThresholdVsDepth"),
22 depth=cms.vint32(1, 2, 3, 4),
23 threshold = _thresholdsHB,
24 detectorEnum = cms.int32(1)
27 depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
28 threshold = _thresholdsHE,
29 detectorEnum = cms.int32(2)
34 name = cms.string(
"PFRecHitQTestHCALChannel"),
35 maxSeverities = cms.vint32(11),
36 cleaningThresholds = cms.vdouble(0.0),
37 flags = cms.vstring(
'Standard')
45 from Configuration.Eras.Modifier_run2_HE_2018_cff
import run2_HE_2018
46 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
47 (run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowRecHitHBHE,
48 producers = {0 : dict(qualityTests = {0 : dict(cuts = {1 : dict(threshold = _thresholdsHEphase1) } ) } ) },
52 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
53 run3_HB.toModify(particleFlowRecHitHBHE,
54 producers = {0 : dict(qualityTests = {0 : dict(cuts = {0 : dict(threshold = _thresholdsHBphase1) } ) } ) },
58 particleFlowRecHitHBHEOnly = particleFlowRecHitHBHE.clone(
59 producers = { 0: dict(src =
"hbheprereco:") }