1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
6 hcalOOTPileupESProducer = cms.ESProducer(
'OOTPileupDBCompatibilityESProducer')
8 from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
import hbheprereco
as _phase1_hbheprereco
10 cpu = _phase1_hbheprereco.clone(
13 pulseShapeParametersQIE8 = dict(
22 hcalLocalRecoTask = cms.Task(hbheprereco, hfreco, horeco, zdcreco)
23 hcalLocalRecoSequence = cms.Sequence(hcalLocalRecoTask)
25 from RecoLocalCalo.HcalRecProducers.hfprereco_cfi
import hfprereco
26 from RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
import hfreco
as _phase1_hfreco
27 from RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
import hbheplan1
30 _default_hfreco = hfreco.clone()
33 _phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
34 _phase1_hcalLocalRecoTask.add(hfprereco)
36 from Configuration.Eras.Modifier_run2_HF_2017_cff
import run2_HF_2017
37 run2_HF_2017.toReplaceWith(hcalLocalRecoTask, _phase1_hcalLocalRecoTask)
38 run2_HF_2017.toReplaceWith(hfreco, _phase1_hfreco)
39 from Configuration.Eras.Modifier_run2_HCAL_2017_cff
import run2_HCAL_2017
40 run2_HCAL_2017.toModify(hbheprereco,
41 cpu = _phase1_hbheprereco.clone()
44 _plan1_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
45 _plan1_hcalLocalRecoTask.add(hbheplan1)
46 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff
import run2_HEPlan1_2017
47 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTask, _plan1_hcalLocalRecoTask)
49 hbhecollapse = hbheplan1.clone()
50 _collapse_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
51 _collapse_hcalLocalRecoTask.add(hbhecollapse)
52 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
53 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTask, _collapse_hcalLocalRecoTask)
56 _run3_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
57 _run3_hcalLocalRecoTask.remove(hbheprereco)
58 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
59 run3_HB.toReplaceWith(hcalLocalRecoTask, _run3_hcalLocalRecoTask)
62 hcalOnlyLegacyLocalRecoTask = hcalLocalRecoTask.copyAndExclude([zdcreco])
68 _run3_hcalLocalRecoGPUTask = hcalLocalRecoTask.copy()
69 _run3_hcalLocalRecoGPUTask.add(hbheRecHitProducerGPUTask)
70 gpu.toReplaceWith(hcalLocalRecoTask, _run3_hcalLocalRecoGPUTask)
73 hcalOnlyLocalRecoTask = hcalLocalRecoTask.copyAndExclude([zdcreco])
76 from RecoLocalCalo.HcalRecProducers.hcalCPURecHitsProducer_cfi
import hcalCPURecHitsProducer
as _hbheprerecoFromCUDA
77 (gpu & ~run3_HB).toModify(hbheprereco,
78 cuda = _hbheprerecoFromCUDA.clone(
84 _fastSim_hcalLocalRecoTask = hcalLocalRecoTask.copyAndExclude([zdcreco])
85 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
86 fastSim.toReplaceWith( hcalLocalRecoTask, _fastSim_hcalLocalRecoTask )