CMS 3D CMS Logo

hcalLocalReco_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 hcalOOTPileupESProducer = cms.ESProducer('OOTPileupDBCompatibilityESProducer')
6 
7 from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi import hbheprereco as _phase1_hbheprereco
8 hbheprereco = _phase1_hbheprereco.clone(
9  processQIE11 = False,
10  tsFromDB = True,
11  pulseShapeParametersQIE8 = dict(
12  TrianglePeakTS = 4,
13  )
14 )
15 
19 hcalLocalRecoTask = cms.Task(hbheprereco, hfreco, horeco, zdcreco)
20 hcalLocalRecoSequence = cms.Sequence(hcalLocalRecoTask)
21 
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
25 
26 #--- for cosmics
27 _default_hfreco = hfreco.clone()
28 
29 #--- for Phase 1
30 _phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
31 _phase1_hcalLocalRecoTask.add(hfprereco)
32 
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)
38 
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)
43 
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)
49 
50 #--- for Run 3 and later
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)
55 
56 #--- for Run 3 on GPU
57 from Configuration.ProcessModifiers.gpu_cff import gpu
58 
60 _run3_hcalLocalRecoGPUTask = _run3_hcalLocalRecoTask.copy()
61 _run3_hcalLocalRecoGPUTask.add(hbheRecHitProducerGPUTask)
62 gpu.toReplaceWith(hcalLocalRecoTask, _run3_hcalLocalRecoGPUTask)
63 
64 #--- HCAL-only workflow for Run 3
65 # FIXME rename `hbheprereco` to `hbhereco` and use it from hcalGlobalRecoTask
66 hcalOnlyLocalRecoTask = cms.Task(hbheprereco, hfprereco, hfreco, horeco)
67 
68 #--- HCAL-only workflow for Run 3 on GPU
69 from Configuration.ProcessModifiers.gpu_cff import gpu
70 
71 _hcalOnlyLocalRecoGPUTask = hcalOnlyLocalRecoTask.copy()
72 _hcalOnlyLocalRecoGPUTask.add(hbheRecHitProducerGPUTask)
73 gpu.toReplaceWith(hcalOnlyLocalRecoTask, _hcalOnlyLocalRecoGPUTask)
74 
75 from RecoLocalCalo.HcalRecProducers.hcalCPURecHitsProducer_cfi import hcalCPURecHitsProducer as _hcalCPURecHitsProducer
76 gpu.toReplaceWith(hbheprereco, _hcalCPURecHitsProducer.clone(
77  recHitsM0LabelIn = "hbheRecHitProducerGPU",
78  recHitsM0LabelOut = "",
79  recHitsLegacyLabelOut = ""
80 ))
81 
82 #--- for FastSim
83 _fastSim_hcalLocalRecoTask = hcalLocalRecoTask.copyAndExclude([zdcreco])
84 from Configuration.Eras.Modifier_fastSim_cff import fastSim
85 fastSim.toReplaceWith( hcalLocalRecoTask, _fastSim_hcalLocalRecoTask )
hcalChannelPropertiesESProd_cfi
hbheRecHitProducerGPUTask_cff
HcalHitReconstructor_hf_cfi
HcalHitReconstructor_ho_cfi
HcalHitReconstructor_zdc_cfi
hcalRecAlgoESProd_cfi