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 hcalLocalRecoSequence = cms.Sequence(hbheprereco+hfreco+horeco+zdcreco)
19 
20 from RecoLocalCalo.HcalRecProducers.hfprereco_cfi import hfprereco
21 from RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi import hfreco as _phase1_hfreco
22 from RecoLocalCalo.HcalRecProducers.hbheplan1_cfi import hbheplan1
23 
24 # copy for cosmics
25 _default_hfreco = hfreco.clone()
26 
27 _phase1_hcalLocalRecoSequence = hcalLocalRecoSequence.copy()
28 _phase1_hcalLocalRecoSequence.insert(0,hfprereco)
29 
30 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
31 run2_HF_2017.toReplaceWith( hcalLocalRecoSequence, _phase1_hcalLocalRecoSequence )
32 run2_HF_2017.toReplaceWith( hfreco, _phase1_hfreco )
33 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
34 run2_HCAL_2017.toReplaceWith( hbheprereco, _phase1_hbheprereco )
35 
36 _plan1_hcalLocalRecoSequence = _phase1_hcalLocalRecoSequence.copy()
37 _plan1_hcalLocalRecoSequence += hbheplan1
38 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
39 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoSequence, _plan1_hcalLocalRecoSequence)
40 
41 hbhecollapse = hbheplan1.clone()
42 _collapse_hcalLocalRecoSequence = _phase1_hcalLocalRecoSequence.copy()
43 _collapse_hcalLocalRecoSequence += hbhecollapse
44 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
45 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoSequence, _collapse_hcalLocalRecoSequence)
46 
47 _phase2_hcalLocalRecoSequence = hcalLocalRecoSequence.copy()
48 _phase2_hcalLocalRecoSequence.remove(hbheprereco)
49 
50 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
51 phase2_hcal.toReplaceWith( hcalLocalRecoSequence, _phase2_hcalLocalRecoSequence )
52 
53 
54 _fastSim_hcalLocalRecoSequence = hcalLocalRecoSequence.copyAndExclude([zdcreco])
55 from Configuration.Eras.Modifier_fastSim_cff import fastSim
56 fastSim.toReplaceWith( hcalLocalRecoSequence, _fastSim_hcalLocalRecoSequence )