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  useM2 = cms.bool(False),
8  useM3 = cms.bool(False)
9  ),
10  processQIE11 = cms.bool(False),
11  setNegativeFlagsQIE8 = cms.bool(False),
12  setNegativeFlagsQIE11 = cms.bool(False),
13  setNoiseFlagsQIE8 = cms.bool(True),
14  setNoiseFlagsQIE11 = cms.bool(False),
15  setPulseShapeFlagsQIE8 = cms.bool(False),
16  setPulseShapeFlagsQIE11 = cms.bool(False),
17  setLegacyFlagsQIE8 = cms.bool(False),
18  setLegacyFlagsQIE11 = cms.bool(False),
19 )
20 
21 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi
22 hfrecoMB = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi.hfreco.clone()
23 
24 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi
25 horecoMB = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi.horeco.clone()
26 
27 # switch off "Hcal ZS in reco":
28 hfrecoMB.dropZSmarkedPassed = cms.bool(False)
29 horecoMB.dropZSmarkedPassed = cms.bool(False)
30 
31 hcalLocalRecoSequenceNZS = cms.Sequence(hbherecoMB*hfrecoMB*horecoMB)
32 
33 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
34 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
35 
36 hfprerecoMB = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
37  dropZSmarkedPassed = cms.bool(False)
38 )
39 _phase1_hfrecoMB = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
40  inputLabel = cms.InputTag("hfprerecoMB"),
41  setNoiseFlags = cms.bool(False),
42  algorithm = dict(
43  Class = cms.string("HFSimpleTimeCheck"),
44  rejectAllFailures = cms.bool(False)
45  ),
46 )
47 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
48 hbheplan1MB = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
49  hbheInput = cms.InputTag("hbheprerecoMB")
50 )
51 
52 _phase1_hcalLocalRecoSequenceNZS = hcalLocalRecoSequenceNZS.copy()
53 _phase1_hcalLocalRecoSequenceNZS.insert(0,hfprerecoMB)
54 
55 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
56 run2_HF_2017.toReplaceWith( hcalLocalRecoSequenceNZS, _phase1_hcalLocalRecoSequenceNZS )
57 run2_HF_2017.toReplaceWith( hfrecoMB, _phase1_hfrecoMB )
58 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
59 run2_HCAL_2017.toModify( hbherecoMB,
60  processQIE11 = cms.bool(True),
61 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
62 # setNoiseFlagsQIE11 = cms.bool(True),
63 )
64 
65 _plan1_hcalLocalRecoSequenceNZS = _phase1_hcalLocalRecoSequenceNZS.copy()
66 hbheprerecoMB = hbherecoMB.clone()
67 _plan1_hcalLocalRecoSequenceNZS.insert(0,hbheprerecoMB)
68 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
69 run2_HEPlan1_2017.toReplaceWith(hbherecoMB, hbheplan1MB)
70 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoSequenceNZS, _plan1_hcalLocalRecoSequenceNZS)