1 import FWCore.ParameterSet.Config
as cms
3 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
4 hbherecoMB = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
5 dropZSmarkedPassed = cms.bool(
False),
7 useMahi = cms.bool(
False),
8 useM2 = cms.bool(
False),
9 useM3 = cms.bool(
False)
11 processQIE11 = cms.bool(
False),
12 setNegativeFlagsQIE8 = cms.bool(
False),
13 setNegativeFlagsQIE11 = cms.bool(
False),
14 setNoiseFlagsQIE8 = cms.bool(
True),
15 setNoiseFlagsQIE11 = cms.bool(
False),
16 setPulseShapeFlagsQIE8 = cms.bool(
False),
17 setPulseShapeFlagsQIE11 = cms.bool(
False),
18 setLegacyFlagsQIE8 = cms.bool(
False),
19 setLegacyFlagsQIE11 = cms.bool(
False),
22 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
23 hfrecoMB = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone()
25 import RecoLocalCalo.HcalRecProducers.hosimplereco_cfi
26 horecoMB = RecoLocalCalo.HcalRecProducers.hosimplereco_cfi.hosimplereco.clone()
29 hfrecoMB.dropZSmarkedPassed = cms.bool(
False)
30 horecoMB.dropZSmarkedPassed = cms.bool(
False)
32 hcalLocalRecoSequenceNZS = cms.Sequence(hbherecoMB*hfrecoMB*horecoMB)
34 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
35 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
37 hfprerecoMB = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
38 dropZSmarkedPassed = cms.bool(
False)
40 _phase1_hfrecoMB = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
41 inputLabel = cms.InputTag(
"hfprerecoMB"),
42 setNoiseFlags = cms.bool(
False),
44 Class = cms.string(
"HFSimpleTimeCheck"),
45 rejectAllFailures = cms.bool(
False)
48 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
49 hbheplan1MB = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
50 hbheInput = cms.InputTag(
"hbheprerecoMB")
53 _phase1_hcalLocalRecoSequenceNZS = hcalLocalRecoSequenceNZS.copy()
54 _phase1_hcalLocalRecoSequenceNZS.insert(0,hfprerecoMB)
56 from Configuration.Eras.Modifier_run2_HF_2017_cff
import run2_HF_2017
57 run2_HF_2017.toReplaceWith( hcalLocalRecoSequenceNZS, _phase1_hcalLocalRecoSequenceNZS )
58 run2_HF_2017.toReplaceWith( hfrecoMB, _phase1_hfrecoMB )
59 from Configuration.Eras.Modifier_run2_HCAL_2017_cff
import run2_HCAL_2017
60 run2_HCAL_2017.toModify( hbherecoMB,
61 processQIE11 = cms.bool(
True),
66 _plan1_hcalLocalRecoSequenceNZS = _phase1_hcalLocalRecoSequenceNZS.copy()
67 hbheprerecoMB = hbherecoMB.clone()
68 _plan1_hcalLocalRecoSequenceNZS.insert(0,hbheprerecoMB)
69 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff
import run2_HEPlan1_2017
70 run2_HEPlan1_2017.toReplaceWith(hbherecoMB, hbheplan1MB)
71 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoSequenceNZS, _plan1_hcalLocalRecoSequenceNZS)
73 hbhecollapseMB = hbheplan1MB.clone()
74 _collapse_hcalLocalRecoSequenceNZS = _phase1_hcalLocalRecoSequenceNZS.copy()
75 _collapse_hcalLocalRecoSequenceNZS.insert(0,hbheprerecoMB)
76 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
77 run2_HECollapse_2018.toReplaceWith(hbherecoMB, hbhecollapseMB)
78 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoSequenceNZS, _collapse_hcalLocalRecoSequenceNZS)