1 import FWCore.ParameterSet.Config
as cms
2 from RecoParticleFlow.PFClusterProducer.particleFlowCaloResolution_cfi
import _timeResolutionHCAL
4 _thresholdsHB = cms.vdouble(0.8, 0.8, 0.8, 0.8)
5 _thresholdsHE = cms.vdouble(0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8)
6 _thresholdsHBphase1 = cms.vdouble(0.1, 0.2, 0.3, 0.3)
7 _thresholdsHEphase1 = cms.vdouble(0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2)
10 particleFlowRecHitHBHE = cms.EDProducer(
"PFRecHitProducer",
12 name = cms.string(
"PFRecHitHCALNavigator"),
13 sigmaCut = cms.double(4.0),
14 timeResolutionCalc = _timeResolutionHCAL
16 producers = cms.VPSet(
18 name = cms.string(
"PFHBHERecHitCreator"),
19 src = cms.InputTag(
"hbhereco",
""),
20 qualityTests = cms.VPSet(
22 name = cms.string(
"PFRecHitQTestHCALThresholdVsDepth"),
25 depth=cms.vint32(1, 2, 3, 4),
26 threshold = _thresholdsHB,
27 detectorEnum = cms.int32(1)
30 depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
31 threshold = _thresholdsHE,
32 detectorEnum = cms.int32(2)
37 name = cms.string(
"PFRecHitQTestHCALChannel"),
38 maxSeverities = cms.vint32(11),
39 cleaningThresholds = cms.vdouble(0.0),
40 flags = cms.vstring(
'Standard')
51 cuts2017 = particleFlowRecHitHBHE.producers[0].qualityTests[0].cuts
55 depth=cms.vint32(1, 2, 3, 4),
56 threshold = _thresholdsHB,
57 detectorEnum = cms.int32(1)
60 depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
61 threshold = _thresholdsHEphase1,
62 detectorEnum = cms.int32(2)
68 depth=cms.vint32(1, 2, 3, 4),
69 threshold = _thresholdsHBphase1,
70 detectorEnum = cms.int32(1)
73 depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
74 threshold = _thresholdsHEphase1,
75 detectorEnum = cms.int32(2)
79 cutsPhase2 = cms.VPSet(
81 depth=cms.vint32(1, 2, 3, 4),
82 threshold = _thresholdsHB,
83 detectorEnum = cms.int32(1)
86 depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
87 threshold = _thresholdsHE,
88 detectorEnum = cms.int32(2)
93 from Configuration.Eras.Modifier_run2_HCAL_2018_cff
import run2_HCAL_2018
94 run2_HCAL_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2018)
96 from Configuration.Eras.Modifier_run2_HE_2018_cff
import run2_HE_2018
97 run2_HE_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2018)
100 run2_HECollapse_2018 = cms.Modifier()
101 run2_HECollapse_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2017)
104 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
105 run3_HB.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2019)
108 from Configuration.Eras.Modifier_phase2_hcal_cff
import phase2_hcal
109 phase2_hcal.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cutsPhase2)