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 # copy for cosmics
26 _default_hfreco = hfreco.clone()
27 
28 _phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
29 _phase1_hcalLocalRecoTask.add(hfprereco)
30 
31 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
32 run2_HF_2017.toReplaceWith( hcalLocalRecoTask, _phase1_hcalLocalRecoTask )
33 run2_HF_2017.toReplaceWith( hfreco, _phase1_hfreco )
34 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
35 run2_HCAL_2017.toReplaceWith( hbheprereco, _phase1_hbheprereco )
36 
37 _plan1_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
38 _plan1_hcalLocalRecoTask.add(hbheplan1)
39 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
40 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTask, _plan1_hcalLocalRecoTask)
41 
42 hbhecollapse = hbheplan1.clone()
43 _collapse_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
44 _collapse_hcalLocalRecoTask.add(hbhecollapse)
45 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
46 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTask, _collapse_hcalLocalRecoTask)
47 
48 _phase2_hcalLocalRecoTask = hcalLocalRecoTask.copy()
49 _phase2_hcalLocalRecoTask.remove(hbheprereco)
50 
51 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
52 phase2_hcal.toReplaceWith( hcalLocalRecoTask, _phase2_hcalLocalRecoTask )
53 
54 
55 _fastSim_hcalLocalRecoTask = hcalLocalRecoTask.copyAndExclude([zdcreco])
56 from Configuration.Eras.Modifier_fastSim_cff import fastSim
57 fastSim.toReplaceWith( hcalLocalRecoTask, _fastSim_hcalLocalRecoTask )