CMS 3D CMS Logo

particleFlowRecHitHBHE_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
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)
7 #updated HB RecHit threshold for 2023
8 _thresholdsHBphase1_2023 = cms.vdouble(0.4, 0.3, 0.3, 0.3)
9 
10 particleFlowRecHitHBHE = cms.EDProducer("PFRecHitProducer",
11  navigator = cms.PSet(
12  name = cms.string("PFRecHitHCALDenseIdNavigator"),
13  hcalEnums = cms.vint32(1,2)
14  ),
15  producers = cms.VPSet(
16  cms.PSet(
17  name = cms.string("PFHBHERecHitCreator"),
18  src = cms.InputTag("hbhereco",""),
19  qualityTests = cms.VPSet(
20  cms.PSet(
21  name = cms.string("PFRecHitQTestHCALThresholdVsDepth"),
22  cuts = cms.VPSet(
23  cms.PSet(
24  depth=cms.vint32(1, 2, 3, 4),
25  threshold = _thresholdsHB,
26  detectorEnum = cms.int32(1)
27  ),
28  cms.PSet(
29  depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
30  threshold = _thresholdsHE,
31  detectorEnum = cms.int32(2)
32  )
33  )
34  ),
35  cms.PSet(
36  name = cms.string("PFRecHitQTestHCALChannel"),
37  maxSeverities = cms.vint32(11),
38  cleaningThresholds = cms.vdouble(0.0),
39  flags = cms.vstring('Standard')
40  )
41  )
42  ),
43  )
44 )
45 
46 # offline 2018 -- uncollapsed
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) } ) } ) },
51 )
52 
53 # offline 2021
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) } ) } ) },
57 )
58 
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) } ) } ) },
62 )
63 
64 # HCALonly WF
65 particleFlowRecHitHBHEOnly = particleFlowRecHitHBHE.clone(
66  producers = { 0: dict(src = "hbheprereco") }
67 )
68 run3_HB.toModify(particleFlowRecHitHBHEOnly,
69  producers = { 0: dict(src = "hbhereco") }
70 )