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 
8 particleFlowRecHitHBHE = cms.EDProducer("PFRecHitProducer",
9  navigator = cms.PSet(
10  name = cms.string("PFRecHitHCALDenseIdNavigator"),
11  hcalEnums = cms.vint32(1,2)
12  ),
13  producers = cms.VPSet(
14  cms.PSet(
15  name = cms.string("PFHBHERecHitCreator"),
16  src = cms.InputTag("hbhereco",""),
17  qualityTests = cms.VPSet(
18  cms.PSet(
19  name = cms.string("PFRecHitQTestHCALThresholdVsDepth"),
20  cuts = cms.VPSet(
21  cms.PSet(
22  depth=cms.vint32(1, 2, 3, 4),
23  threshold = _thresholdsHB,
24  detectorEnum = cms.int32(1)
25  ),
26  cms.PSet(
27  depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
28  threshold = _thresholdsHE,
29  detectorEnum = cms.int32(2)
30  )
31  )
32  ),
33  cms.PSet(
34  name = cms.string("PFRecHitQTestHCALChannel"),
35  maxSeverities = cms.vint32(11),
36  cleaningThresholds = cms.vdouble(0.0),
37  flags = cms.vstring('Standard')
38  )
39  )
40  ),
41  )
42 )
43 
44 # offline 2018 -- uncollapsed
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) } ) } ) },
49 )
50 
51 # offline 2021
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) } ) } ) },
55 )
56 
57 # HCALonly WF
58 particleFlowRecHitHBHEOnly = particleFlowRecHitHBHE.clone(
59  producers = { 0: dict(src = "hbheprereco") }
60 )
61 run3_HB.toModify(particleFlowRecHitHBHEOnly,
62  producers = { 0: dict(src = "hbhereco") }
63 )