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')
48 from Configuration.Eras.Modifier_run2_HE_2018_cff
import run2_HE_2018
49 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
50 (run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowRecHitHBHE,
51 producers = {0 :
dict(qualityTests = {0 :
dict(cuts = {1 :
dict(threshold = _thresholdsHEphase1) } ) } ) },
55 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
56 run3_HB.toModify(particleFlowRecHitHBHE,
57 producers = {0 :
dict(qualityTests = {0 :
dict(cuts = {0 :
dict(threshold = _thresholdsHBphase1) } ) } ) },