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 hcalLocalRecoTaskNZS = cms.Task(hbherecoMB,hfrecoMB,horecoMB)
33 hcalLocalRecoSequenceNZS = cms.Sequence(hcalLocalRecoTaskNZS)
35 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
36 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
38 hfprerecoMB = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
39 dropZSmarkedPassed = cms.bool(
False)
41 _phase1_hfrecoMB = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
42 inputLabel = cms.InputTag(
"hfprerecoMB"),
43 setNoiseFlags = cms.bool(
False),
45 Class = cms.string(
"HFSimpleTimeCheck"),
46 rejectAllFailures = cms.bool(
False)
49 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
50 hbheplan1MB = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
51 hbheInput = cms.InputTag(
"hbheprerecoMB")
54 _phase1_hcalLocalRecoTaskNZS = hcalLocalRecoTaskNZS.copy()
55 _phase1_hcalLocalRecoTaskNZS.add(hfprerecoMB)
57 from Configuration.Eras.Modifier_run2_HF_2017_cff
import run2_HF_2017
58 run2_HF_2017.toReplaceWith( hcalLocalRecoTaskNZS, _phase1_hcalLocalRecoTaskNZS )
59 run2_HF_2017.toReplaceWith( hfrecoMB, _phase1_hfrecoMB )
61 from Configuration.Eras.Modifier_run2_HCAL_2017_cff
import run2_HCAL_2017
62 run2_HCAL_2017.toModify( hbherecoMB,
63 processQIE11 = cms.bool(
True),
68 _plan1_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
69 hbheprerecoMB = hbherecoMB.clone()
70 _plan1_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
71 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff
import run2_HEPlan1_2017
72 run2_HEPlan1_2017.toReplaceWith(hbherecoMB, hbheplan1MB)
73 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTaskNZS, _plan1_hcalLocalRecoTaskNZS)
75 hbhecollapseMB = hbheplan1MB.clone()
76 _collapse_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
77 _collapse_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
78 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
79 run2_HECollapse_2018.toReplaceWith(hbherecoMB, hbhecollapseMB)
80 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTaskNZS, _collapse_hcalLocalRecoTaskNZS)