CMS 3D CMS Logo

hcalLocalReco_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 hcalOOTPileupESProducer = cms.ESProducer('OOTPileupDBCompatibilityESProducer')
5 
6 from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi import hbheprereco as _phase1_hbheprereco
7 hbheprereco = _phase1_hbheprereco.clone(
8  processQIE11 = cms.bool(False),
9  tsFromDB = cms.bool(True),
10  pulseShapeParametersQIE8 = dict(
11  TrianglePeakTS = cms.uint32(4),
12  )
13 )
14 
18 hcalLocalRecoTask = cms.Task(hbheprereco,hfreco,horeco,zdcreco)
19 hcalLocalRecoSequence = cms.Sequence(hcalLocalRecoTask)
20 
21 from RecoLocalCalo.HcalRecProducers.hfprereco_cfi import hfprereco
22 from RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi import hfreco as _phase1_hfreco
23 from RecoLocalCalo.HcalRecProducers.hbheplan1_cfi import hbheplan1
24 
25 #--- for HCALonly wf
26 hcalOnlyLocalRecoTask = cms.Task(hbheprereco,hfprereco,hfreco,horeco)
27 
28 # copy for cosmics
29 _default_hfreco = hfreco.clone()
30 
31 _phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
32 _phase1_hcalLocalRecoTask.add(hfprereco)
33 
34 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
35 run2_HF_2017.toReplaceWith( hcalLocalRecoTask, _phase1_hcalLocalRecoTask )
36 run2_HF_2017.toReplaceWith( hfreco, _phase1_hfreco )
37 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
38 run2_HCAL_2017.toReplaceWith( hbheprereco, _phase1_hbheprereco )
39 
40 _plan1_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
41 _plan1_hcalLocalRecoTask.add(hbheplan1)
42 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
43 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTask, _plan1_hcalLocalRecoTask)
44 
45 hbhecollapse = hbheplan1.clone()
46 _collapse_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
47 _collapse_hcalLocalRecoTask.add(hbhecollapse)
48 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
49 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTask, _collapse_hcalLocalRecoTask)
50 
51 _phase2_hcalLocalRecoTask = hcalLocalRecoTask.copy()
52 _phase2_hcalLocalRecoTask.remove(hbheprereco)
53 
54 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
55 phase2_hcal.toReplaceWith( hcalLocalRecoTask, _phase2_hcalLocalRecoTask )
56 
57 
58 _fastSim_hcalLocalRecoTask = hcalLocalRecoTask.copyAndExclude([zdcreco])
59 from Configuration.Eras.Modifier_fastSim_cff import fastSim
60 fastSim.toReplaceWith( hcalLocalRecoTask, _fastSim_hcalLocalRecoTask )
HcalHitReconstructor_hf_cfi
HcalHitReconstructor_ho_cfi
HcalHitReconstructor_zdc_cfi
hcalRecAlgoESProd_cfi