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  )
48 
49 )
50 
51 cuts2017 = particleFlowRecHitHBHE.producers[0].qualityTests[0].cuts
52 
53 cuts2018 = cms.VPSet(
54  cms.PSet(
55  depth=cms.vint32(1, 2, 3, 4),
56  threshold = _thresholdsHB,
57  detectorEnum = cms.int32(1)
58  ),
59  cms.PSet(
60  depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
61  threshold = _thresholdsHEphase1,
62  detectorEnum = cms.int32(2)
63  )
64  )
65 
66 cuts2019 = cms.VPSet(
67  cms.PSet(
68  depth=cms.vint32(1, 2, 3, 4),
69  threshold = _thresholdsHBphase1,
70  detectorEnum = cms.int32(1)
71  ),
72  cms.PSet(
73  depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
74  threshold = _thresholdsHEphase1,
75  detectorEnum = cms.int32(2)
76  )
77  )
78 
79 cutsPhase2 = cms.VPSet(
80  cms.PSet(
81  depth=cms.vint32(1, 2, 3, 4),
82  threshold = _thresholdsHB,
83  detectorEnum = cms.int32(1)
84  ),
85  cms.PSet(
86  depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
87  threshold = _thresholdsHE,
88  detectorEnum = cms.int32(2)
89  )
90  )
91 
92 # offline 2018 -- uncollapsed
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)
95 
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)
98 
99 # offline 2018 -- collapsed
100 run2_HECollapse_2018 = cms.Modifier()
101 run2_HECollapse_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2017)
102 
103 # offline 2019
104 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
105 run3_HB.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2019)
106 
107 # offline phase2 restore what has been studied in the TDR
108 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
109 phase2_hcal.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cutsPhase2)