File indexing completed on 2024-04-06 12:25:38
0001 import FWCore.ParameterSet.Config as cms
0002
0003 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
0004 hbherecoMB = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
0005 dropZSmarkedPassed = False,
0006 algorithm = dict(
0007 useMahi = False,
0008 useM2 = False,
0009 useM3 = False
0010 ),
0011 processQIE11 = False,
0012 setNegativeFlagsQIE8 = False,
0013 setNegativeFlagsQIE11 = False,
0014 setNoiseFlagsQIE8 = True,
0015 setNoiseFlagsQIE11 = False,
0016 setPulseShapeFlagsQIE8 = False,
0017 setPulseShapeFlagsQIE11 = False,
0018 setLegacyFlagsQIE8 = False,
0019 setLegacyFlagsQIE11 = False,
0020 )
0021
0022 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
0023 hfrecoMB = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone(
0024
0025 dropZSmarkedPassed = False
0026 )
0027
0028 import RecoLocalCalo.HcalRecProducers.hosimplereco_cfi
0029 horecoMB = RecoLocalCalo.HcalRecProducers.hosimplereco_cfi.hosimplereco.clone(
0030
0031 dropZSmarkedPassed = False
0032 )
0033
0034 hcalLocalRecoTaskNZS = cms.Task(hbherecoMB,hfrecoMB,horecoMB)
0035 hcalLocalRecoSequenceNZS = cms.Sequence(hcalLocalRecoTaskNZS)
0036
0037 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
0038 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
0039
0040 hfprerecoMB = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
0041 dropZSmarkedPassed = False
0042 )
0043 _phase1_hfrecoMB = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
0044 inputLabel = "hfprerecoMB",
0045 setNoiseFlags = False,
0046 algorithm = dict(
0047 Class = "HFSimpleTimeCheck",
0048 rejectAllFailures = False
0049 ),
0050 )
0051 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
0052 hbheplan1MB = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
0053 hbheInput = "hbheprerecoMB"
0054 )
0055
0056 _phase1_hcalLocalRecoTaskNZS = hcalLocalRecoTaskNZS.copy()
0057 _phase1_hcalLocalRecoTaskNZS.add(hfprerecoMB)
0058
0059 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
0060 run2_HF_2017.toReplaceWith( hcalLocalRecoTaskNZS, _phase1_hcalLocalRecoTaskNZS )
0061 run2_HF_2017.toReplaceWith( hfrecoMB, _phase1_hfrecoMB )
0062
0063 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
0064 run2_HCAL_2017.toModify( hbherecoMB,
0065 processQIE11 = True,
0066
0067
0068 )
0069
0070 _plan1_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
0071 hbheprerecoMB = hbherecoMB.clone()
0072 _plan1_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
0073 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
0074 run2_HEPlan1_2017.toReplaceWith(hbherecoMB, hbheplan1MB)
0075 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTaskNZS, _plan1_hcalLocalRecoTaskNZS)
0076
0077 hbhecollapseMB = hbheplan1MB.clone()
0078 _collapse_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
0079 _collapse_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
0080 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
0081 run2_HECollapse_2018.toReplaceWith(hbherecoMB, hbhecollapseMB)
0082 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTaskNZS, _collapse_hcalLocalRecoTaskNZS)