1 import FWCore.ParameterSet.Config
as cms
3 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
4 hbherecoMB = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
5 dropZSmarkedPassed =
False,
12 setNegativeFlagsQIE8 =
False,
13 setNegativeFlagsQIE11 =
False,
14 setNoiseFlagsQIE8 =
True,
15 setNoiseFlagsQIE11 =
False,
16 setPulseShapeFlagsQIE8 =
False,
17 setPulseShapeFlagsQIE11 =
False,
18 setLegacyFlagsQIE8 =
False,
19 setLegacyFlagsQIE11 =
False,
22 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
23 hfrecoMB = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone(
25 dropZSmarkedPassed =
False 28 import RecoLocalCalo.HcalRecProducers.hosimplereco_cfi
29 horecoMB = RecoLocalCalo.HcalRecProducers.hosimplereco_cfi.hosimplereco.clone(
31 dropZSmarkedPassed =
False 34 hcalLocalRecoTaskNZS = cms.Task(hbherecoMB,hfrecoMB,horecoMB)
35 hcalLocalRecoSequenceNZS = cms.Sequence(hcalLocalRecoTaskNZS)
37 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
38 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
40 hfprerecoMB = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
41 dropZSmarkedPassed =
False 43 _phase1_hfrecoMB = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
44 inputLabel =
"hfprerecoMB",
45 setNoiseFlags =
False,
47 Class =
"HFSimpleTimeCheck",
48 rejectAllFailures =
False 51 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
52 hbheplan1MB = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
53 hbheInput =
"hbheprerecoMB" 56 _phase1_hcalLocalRecoTaskNZS = hcalLocalRecoTaskNZS.copy()
57 _phase1_hcalLocalRecoTaskNZS.add(hfprerecoMB)
59 from Configuration.Eras.Modifier_run2_HF_2017_cff
import run2_HF_2017
60 run2_HF_2017.toReplaceWith( hcalLocalRecoTaskNZS, _phase1_hcalLocalRecoTaskNZS )
61 run2_HF_2017.toReplaceWith( hfrecoMB, _phase1_hfrecoMB )
63 from Configuration.Eras.Modifier_run2_HCAL_2017_cff
import run2_HCAL_2017
64 run2_HCAL_2017.toModify( hbherecoMB,
70 _plan1_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
71 hbheprerecoMB = hbherecoMB.clone()
72 _plan1_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
73 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff
import run2_HEPlan1_2017
74 run2_HEPlan1_2017.toReplaceWith(hbherecoMB, hbheplan1MB)
75 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTaskNZS, _plan1_hcalLocalRecoTaskNZS)
77 hbhecollapseMB = hbheplan1MB.clone()
78 _collapse_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
79 _collapse_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
80 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
81 run2_HECollapse_2018.toReplaceWith(hbherecoMB, hbhecollapseMB)
82 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTaskNZS, _collapse_hcalLocalRecoTaskNZS)