1 import FWCore.ParameterSet.Config
as cms
5 hcalOOTPileupESProducer = cms.ESProducer(
'OOTPileupDBCompatibilityESProducer')
7 from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
import hbheprereco
as _phase1_hbheprereco
8 hbheprereco = _phase1_hbheprereco.clone(
11 pulseShapeParametersQIE8 = dict(
19 hcalLocalRecoTask = cms.Task(hbheprereco, hfreco, horeco, zdcreco)
20 hcalLocalRecoSequence = cms.Sequence(hcalLocalRecoTask)
22 from RecoLocalCalo.HcalRecProducers.hfprereco_cfi
import hfprereco
23 from RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
import hfreco
as _phase1_hfreco
24 from RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
import hbheplan1
27 _default_hfreco = hfreco.clone()
30 _phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
31 _phase1_hcalLocalRecoTask.add(hfprereco)
33 from Configuration.Eras.Modifier_run2_HF_2017_cff
import run2_HF_2017
34 run2_HF_2017.toReplaceWith( hcalLocalRecoTask, _phase1_hcalLocalRecoTask )
35 run2_HF_2017.toReplaceWith( hfreco, _phase1_hfreco )
36 from Configuration.Eras.Modifier_run2_HCAL_2017_cff
import run2_HCAL_2017
37 run2_HCAL_2017.toReplaceWith(hbheprereco, _phase1_hbheprereco)
39 _plan1_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
40 _plan1_hcalLocalRecoTask.add(hbheplan1)
41 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff
import run2_HEPlan1_2017
42 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTask, _plan1_hcalLocalRecoTask)
44 hbhecollapse = hbheplan1.clone()
45 _collapse_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
46 _collapse_hcalLocalRecoTask.add(hbhecollapse)
47 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
48 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTask, _collapse_hcalLocalRecoTask)
51 _run3_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
52 _run3_hcalLocalRecoTask.remove(hbheprereco)
53 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
54 run3_HB.toReplaceWith(hcalLocalRecoTask, _run3_hcalLocalRecoTask)
57 from Configuration.ProcessModifiers.gpu_cff
import gpu
60 _run3_hcalLocalRecoGPUTask = _run3_hcalLocalRecoTask.copy()
61 _run3_hcalLocalRecoGPUTask.add(hbheRecHitProducerGPUTask)
62 gpu.toReplaceWith(hcalLocalRecoTask, _run3_hcalLocalRecoGPUTask)
66 hcalOnlyLocalRecoTask = cms.Task(hbheprereco, hfprereco, hfreco, horeco)
69 from Configuration.ProcessModifiers.gpu_cff
import gpu
71 _hcalOnlyLocalRecoGPUTask = hcalOnlyLocalRecoTask.copy()
72 _hcalOnlyLocalRecoGPUTask.add(hbheRecHitProducerGPUTask)
73 gpu.toReplaceWith(hcalOnlyLocalRecoTask, _hcalOnlyLocalRecoGPUTask)
75 from RecoLocalCalo.HcalRecProducers.hcalCPURecHitsProducer_cfi
import hcalCPURecHitsProducer
as _hcalCPURecHitsProducer
76 gpu.toReplaceWith(hbheprereco, _hcalCPURecHitsProducer.clone(
77 recHitsM0LabelIn =
"hbheRecHitProducerGPU",
78 recHitsM0LabelOut =
"",
79 recHitsLegacyLabelOut =
""
83 _fastSim_hcalLocalRecoTask = hcalLocalRecoTask.copyAndExclude([zdcreco])
84 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
85 fastSim.toReplaceWith( hcalLocalRecoTask, _fastSim_hcalLocalRecoTask )