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 hcalLocalRecoTaskNZS = cms.Task(hbherecoMB,hfrecoMB,horecoMB)
33 hcalLocalRecoSequenceNZS = cms.Sequence(hcalLocalRecoTaskNZS)
34 
35 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
36 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
37 
38 hfprerecoMB = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
39  dropZSmarkedPassed = cms.bool(False)
40 )
41 _phase1_hfrecoMB = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
42  inputLabel = cms.InputTag("hfprerecoMB"),
43  setNoiseFlags = cms.bool(False),
44  algorithm = dict(
45  Class = cms.string("HFSimpleTimeCheck"),
46  rejectAllFailures = cms.bool(False)
47  ),
48 )
49 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
50 hbheplan1MB = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
51  hbheInput = cms.InputTag("hbheprerecoMB")
52 )
53 
54 _phase1_hcalLocalRecoTaskNZS = hcalLocalRecoTaskNZS.copy()
55 _phase1_hcalLocalRecoTaskNZS.add(hfprerecoMB)
56 
57 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
58 run2_HF_2017.toReplaceWith( hcalLocalRecoTaskNZS, _phase1_hcalLocalRecoTaskNZS )
59 run2_HF_2017.toReplaceWith( hfrecoMB, _phase1_hfrecoMB )
60 
61 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
62 run2_HCAL_2017.toModify( hbherecoMB,
63  processQIE11 = cms.bool(True),
64 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
65 # setNoiseFlagsQIE11 = cms.bool(True),
66 )
67 
68 _plan1_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
69 hbheprerecoMB = hbherecoMB.clone()
70 _plan1_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
71 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
72 run2_HEPlan1_2017.toReplaceWith(hbherecoMB, hbheplan1MB)
73 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTaskNZS, _plan1_hcalLocalRecoTaskNZS)
74 
75 hbhecollapseMB = hbheplan1MB.clone()
76 _collapse_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
77 _collapse_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
78 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
79 run2_HECollapse_2018.toReplaceWith(hbherecoMB, hbhecollapseMB)
80 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTaskNZS, _collapse_hcalLocalRecoTaskNZS)