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 HCALonly wf
27 hcalOnlyLocalRecoTask = cms.Task(hbheprereco,hfprereco,hfreco,horeco)
28 
29 # copy for cosmics
30 _default_hfreco = hfreco.clone()
31 
32 #--- Phase1
33 _phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
34 _phase1_hcalLocalRecoTask.add(hfprereco)
35 
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.toReplaceWith( hbheprereco, _phase1_hbheprereco )
41 
42 _plan1_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
43 _plan1_hcalLocalRecoTask.add(hbheplan1)
44 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
45 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTask, _plan1_hcalLocalRecoTask)
46 
47 hbhecollapse = hbheplan1.clone()
48 _collapse_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
49 _collapse_hcalLocalRecoTask.add(hbhecollapse)
50 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
51 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTask, _collapse_hcalLocalRecoTask)
52 
53 #--- from >=Run3
54 _run3_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
55 _run3_hcalLocalRecoTask.remove(hbheprereco)
56 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
57 run3_HB.toReplaceWith( hcalLocalRecoTask, _run3_hcalLocalRecoTask )
58 
59 _fastSim_hcalLocalRecoTask = hcalLocalRecoTask.copyAndExclude([zdcreco])
60 from Configuration.Eras.Modifier_fastSim_cff import fastSim
61 fastSim.toReplaceWith( hcalLocalRecoTask, _fastSim_hcalLocalRecoTask )
hcalChannelPropertiesESProd_cfi
HcalHitReconstructor_hf_cfi
HcalHitReconstructor_ho_cfi
HcalHitReconstructor_zdc_cfi
hcalRecAlgoESProd_cfi