CMS 3D CMS Logo

hcalLocalRecoNZS_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
4 hbherecoMB = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
5  dropZSmarkedPassed = cms.bool(False),
6  algorithm = dict(
7  useMahi = cms.bool(False),
8  useM2 = cms.bool(False),
9  useM3 = cms.bool(False)
10  ),
11  processQIE11 = cms.bool(False),
12  setNegativeFlagsQIE8 = cms.bool(False),
13  setNegativeFlagsQIE11 = cms.bool(False),
14  setNoiseFlagsQIE8 = cms.bool(True),
15  setNoiseFlagsQIE11 = cms.bool(False),
16  setPulseShapeFlagsQIE8 = cms.bool(False),
17  setPulseShapeFlagsQIE11 = cms.bool(False),
18  setLegacyFlagsQIE8 = cms.bool(False),
19  setLegacyFlagsQIE11 = cms.bool(False),
20 )
21 
22 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
23 hfrecoMB = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone()
24 
25 import RecoLocalCalo.HcalRecProducers.hosimplereco_cfi
26 horecoMB = RecoLocalCalo.HcalRecProducers.hosimplereco_cfi.hosimplereco.clone()
27 
28 # switch off "Hcal ZS in reco":
29 hfrecoMB.dropZSmarkedPassed = cms.bool(False)
30 horecoMB.dropZSmarkedPassed = cms.bool(False)
31 
32 hcalLocalRecoSequenceNZS = cms.Sequence(hbherecoMB*hfrecoMB*horecoMB)
33 
34 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
35 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
36 
37 hfprerecoMB = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
38  dropZSmarkedPassed = cms.bool(False)
39 )
40 _phase1_hfrecoMB = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
41  inputLabel = cms.InputTag("hfprerecoMB"),
42  setNoiseFlags = cms.bool(False),
43  algorithm = dict(
44  Class = cms.string("HFSimpleTimeCheck"),
45  rejectAllFailures = cms.bool(False)
46  ),
47 )
48 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
49 hbheplan1MB = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
50  hbheInput = cms.InputTag("hbheprerecoMB")
51 )
52 
53 _phase1_hcalLocalRecoSequenceNZS = hcalLocalRecoSequenceNZS.copy()
54 _phase1_hcalLocalRecoSequenceNZS.insert(0,hfprerecoMB)
55 
56 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
57 run2_HF_2017.toReplaceWith( hcalLocalRecoSequenceNZS, _phase1_hcalLocalRecoSequenceNZS )
58 run2_HF_2017.toReplaceWith( hfrecoMB, _phase1_hfrecoMB )
59 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
60 run2_HCAL_2017.toModify( hbherecoMB,
61  processQIE11 = cms.bool(True),
62 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
63 # setNoiseFlagsQIE11 = cms.bool(True),
64 )
65 
66 _plan1_hcalLocalRecoSequenceNZS = _phase1_hcalLocalRecoSequenceNZS.copy()
67 hbheprerecoMB = hbherecoMB.clone()
68 _plan1_hcalLocalRecoSequenceNZS.insert(0,hbheprerecoMB)
69 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
70 run2_HEPlan1_2017.toReplaceWith(hbherecoMB, hbheplan1MB)
71 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoSequenceNZS, _plan1_hcalLocalRecoSequenceNZS)
72 
73 hbhecollapseMB = hbheplan1MB.clone()
74 _collapse_hcalLocalRecoSequenceNZS = _phase1_hcalLocalRecoSequenceNZS.copy()
75 _collapse_hcalLocalRecoSequenceNZS.insert(0,hbheprerecoMB)
76 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
77 run2_HECollapse_2018.toReplaceWith(hbherecoMB, hbhecollapseMB)
78 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoSequenceNZS, _collapse_hcalLocalRecoSequenceNZS)