CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 = False,
6  algorithm = dict(
7  useMahi = False,
8  useM2 = False,
9  useM3 = False
10  ),
11  processQIE11 = False,
12  setNegativeFlagsQIE8 = False,
13  setNegativeFlagsQIE11 = False,
14  setNoiseFlagsQIE8 = True,
15  setNoiseFlagsQIE11 = False,
16  setPulseShapeFlagsQIE8 = False,
17  setPulseShapeFlagsQIE11 = False,
18  setLegacyFlagsQIE8 = False,
19  setLegacyFlagsQIE11 = False,
20 )
21 
22 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
23 hfrecoMB = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone(
24  # switch off "Hcal ZS in reco":
25  dropZSmarkedPassed = False
26 )
27 
28 import RecoLocalCalo.HcalRecProducers.hosimplereco_cfi
29 horecoMB = RecoLocalCalo.HcalRecProducers.hosimplereco_cfi.hosimplereco.clone(
30  # switch off "Hcal ZS in reco":
31  dropZSmarkedPassed = False
32 )
33 
34 hcalLocalRecoTaskNZS = cms.Task(hbherecoMB,hfrecoMB,horecoMB)
35 hcalLocalRecoSequenceNZS = cms.Sequence(hcalLocalRecoTaskNZS)
36 
37 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
38 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
39 
40 hfprerecoMB = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
41  dropZSmarkedPassed = False
42 )
43 _phase1_hfrecoMB = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
44  inputLabel = "hfprerecoMB",
45  setNoiseFlags = False,
46  algorithm = dict(
47  Class = "HFSimpleTimeCheck",
48  rejectAllFailures = False
49  ),
50 )
51 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
52 hbheplan1MB = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
53  hbheInput = "hbheprerecoMB"
54 )
55 
56 _phase1_hcalLocalRecoTaskNZS = hcalLocalRecoTaskNZS.copy()
57 _phase1_hcalLocalRecoTaskNZS.add(hfprerecoMB)
58 
59 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
60 run2_HF_2017.toReplaceWith( hcalLocalRecoTaskNZS, _phase1_hcalLocalRecoTaskNZS )
61 run2_HF_2017.toReplaceWith( hfrecoMB, _phase1_hfrecoMB )
62 
63 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
64 run2_HCAL_2017.toModify( hbherecoMB,
65  processQIE11 = True,
66 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
67 # setNoiseFlagsQIE11 = cms.bool(True),
68 )
69 
70 _plan1_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
71 hbheprerecoMB = hbherecoMB.clone()
72 _plan1_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
73 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
74 run2_HEPlan1_2017.toReplaceWith(hbherecoMB, hbheplan1MB)
75 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTaskNZS, _plan1_hcalLocalRecoTaskNZS)
76 
77 hbhecollapseMB = hbheplan1MB.clone()
78 _collapse_hcalLocalRecoTaskNZS = _phase1_hcalLocalRecoTaskNZS.copy()
79 _collapse_hcalLocalRecoTaskNZS.add(hbheprerecoMB)
80 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
81 run2_HECollapse_2018.toReplaceWith(hbherecoMB, hbhecollapseMB)
82 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTaskNZS, _collapse_hcalLocalRecoTaskNZS)