CMS 3D CMS Logo

particleFlowRecHitHBHE_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from RecoParticleFlow.PFClusterProducer.particleFlowCaloResolution_cfi import _timeResolutionHCAL
3 
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)
8 
9 
10 particleFlowRecHitHBHE = cms.EDProducer("PFRecHitProducer",
11  navigator = cms.PSet(
12  name = cms.string("PFRecHitHCALNavigator"),
13  sigmaCut = cms.double(4.0),
14  timeResolutionCalc = _timeResolutionHCAL
15  ),
16  producers = cms.VPSet(
17  cms.PSet(
18  name = cms.string("PFHBHERecHitCreator"),
19  src = cms.InputTag("hbhereco",""),
20  qualityTests = cms.VPSet(
21  cms.PSet(
22  name = cms.string("PFRecHitQTestHCALThresholdVsDepth"),
23  cuts = cms.VPSet(
24  cms.PSet(
25  depth=cms.vint32(1, 2, 3, 4),
26  threshold = _thresholdsHB,
27  detectorEnum = cms.int32(1)
28  ),
29  cms.PSet(
30  depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
31  threshold = _thresholdsHE,
32  detectorEnum = cms.int32(2)
33  )
34  )
35  ),
36  cms.PSet(
37  name = cms.string("PFRecHitQTestHCALChannel"),
38  maxSeverities = cms.vint32(11),
39  cleaningThresholds = cms.vdouble(0.0),
40  flags = cms.vstring('Standard')
41  )
42  )
43  ),
44  )
45 )
46 
47 # offline 2018 -- uncollapsed
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) } ) } ) },
52 )
53 
54 # offline 2019
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) } ) } ) },
58 )