1 import FWCore.ParameterSet.Config
as cms
22 hbhereco = _hcalLocalReco_cff.hbheprereco.cpu.clone(
24 recoParamsFromDB =
False,
29 firstSampleShift = -1000,
31 correctForPhaseContainment =
False,
36 hfreco = _hcalLocalReco_cff._default_hfreco.clone(
39 correctForTimeslew =
False,
40 correctForPhaseContainment =
False,
42 recoParamsFromDB =
False,
43 digiTimeFromDB =
False,
45 horeco = _hcalLocalReco_cff.horeco.clone(
48 correctForTimeslew =
False,
49 correctForPhaseContainment =
False,
51 recoParamsFromDB =
False,
53 zdcreco = _hcalLocalReco_cff.zdcreco.clone(
56 correctForTimeslew =
True,
57 correctForPhaseContainment =
True,
58 correctionPhaseNS = 10.,
62 from Configuration.Eras.Modifier_run2_HF_2017_cff
import run2_HF_2017
64 _phase1_hfreco = _hcalLocalReco_cff._phase1_hfreco.clone(
66 Class =
"HFSimpleTimeCheck",
67 rejectAllFailures =
False,
72 run2_HF_2017.toReplaceWith(hfreco, _phase1_hfreco )
74 hfprereco = _hcalLocalReco_cff.hfprereco.clone(
75 sumAllTimeSlices =
True 78 from RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
import hbheplan1
81 hcalLocalRecoTask = cms.Task(hbhereco,hfreco,horeco,zdcreco)
82 hcalLocalRecoSequence = cms.Sequence(hcalLocalRecoTask)
84 _phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
85 _phase1_hcalLocalRecoTask.add(hfprereco)
86 run2_HF_2017.toReplaceWith(hcalLocalRecoTask, _phase1_hcalLocalRecoTask)
89 _plan1_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
90 hbheprereco = hbhereco.clone()
91 _plan1_hcalLocalRecoTask.add(hbheprereco)
92 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff
import run2_HEPlan1_2017
93 run2_HEPlan1_2017.toReplaceWith(hbhereco, hbheplan1)
94 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTask, _plan1_hcalLocalRecoTask)
96 hbhecollapse = hbheplan1.clone()
97 _collapse_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
98 _collapse_hcalLocalRecoTask.add(hbheprereco)
99 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
100 run2_HECollapse_2018.toReplaceWith(hbhereco, hbhecollapse)
101 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTask, _collapse_hcalLocalRecoTask)
102 calolocalrecoTaskCosmics = cms.Task(ecalLocalRecoTaskCosmics,hcalLocalRecoTask)
103 calolocalrecoCosmics = cms.Sequence(calolocalrecoTaskCosmics)
108 calolocalrecoTaskCosmicsNZS = cms.Task(ecalLocalRecoTaskCosmics,hcalLocalRecoTask,hcalLocalRecoTaskNZS)
109 calolocalrecoCosmicsNZS = cms.Sequence(calolocalrecoTaskCosmicsNZS)
112 _run3_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
113 from RecoLocalCalo.HcalRecProducers.zdcrecoRun3_cfi
import zdcrecoRun3
114 _run3_hcalLocalRecoTask.remove(zdcreco)
115 _run3_hcalLocalRecoTask.add(zdcrecoRun3)
116 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
117 run3_common.toReplaceWith(hcalLocalRecoTask, _run3_hcalLocalRecoTask)