CMS 3D CMS Logo

ALCARECOHcalCalMinBias_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #------------------------------------------------
4 #AlCaReco filtering for HCAL minbias:
5 #------------------------------------------------
6 
8 
10 hcalminbiasHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
11 # HLTPaths = ['HLT_HcalPhiSym'],
12  eventSetupPathsKey='HcalCalMinBias',
13  throw = False #dont throw except on unknown path name
14 )
15 
16 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
17 hbherecoMBNZS = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
18  digiLabelQIE8 = cms.InputTag("hcalDigiAlCaMB"),
19  digiLabelQIE11 = cms.InputTag("hcalDigiAlCaMB"),
20  tsFromDB = cms.bool(False),
21  dropZSmarkedPassed = cms.bool(False),
22  algorithm = dict(
23  useM2 = cms.bool(False),
24  useM3 = cms.bool(False)
25  ),
26  processQIE11 = cms.bool(False),
27  setNegativeFlagsQIE8 = cms.bool(False),
28  setNegativeFlagsQIE11 = cms.bool(False),
29  setNoiseFlagsQIE8 = cms.bool(True),
30  setNoiseFlagsQIE11 = cms.bool(False),
31  setPulseShapeFlagsQIE8 = cms.bool(False),
32  setPulseShapeFlagsQIE11 = cms.bool(False),
33  setLegacyFlagsQIE8 = cms.bool(False),
34  setLegacyFlagsQIE11 = cms.bool(False),
35 )
36 
37 hbherecoMBNZS.algorithm.firstSample = 4
38 hbherecoMBNZS.algorithm.samplesToAdd = 4
39 
40 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi
41 horecoMBNZS = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi.horeco.clone()
42 
43 horecoMBNZS.firstSample = 4
44 horecoMBNZS.samplesToAdd = 4
45 horecoMBNZS.digiLabel = 'hcalDigiAlCaMB'
46 horecoMBNZS.tsFromDB = cms.bool(False)
47 horecoMBNZS.dropZSmarkedPassed = cms.bool(False)
48 
49 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi
50 hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi.hfreco.clone()
51 
52 hfrecoMBNZS.firstSample = 2
53 hfrecoMBNZS.samplesToAdd = 2
54 hfrecoMBNZS.digiLabel = 'hcalDigiAlCaMB'
55 hfrecoMBNZS.tsFromDB = cms.bool(False)
56 hfrecoMBNZS.dropZSmarkedPassed = cms.bool(False)
57 
58 seqALCARECOHcalCalMinBiasDigi = cms.Sequence(hcalminbiasHLT*hcalDigiAlCaMB*gtDigisAlCaMB)
59 seqALCARECOHcalCalMinBiasDigiNoHLT = cms.Sequence(hcalDigiAlCaMB*gtDigisAlCaMB)
60 
61 seqALCARECOHcalCalMinBias = cms.Sequence(hbherecoMBNZS*horecoMBNZS*hbherecoNoise*hfrecoNoise*hfrecoMBNZS*horecoNoise)
62 
63 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
64 hfprerecoNoise = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
65  digiLabel = cms.InputTag("hcalDigiAlCaMB"),
66  dropZSmarkedPassed = cms.bool(False),
67  tsFromDB = cms.bool(False),
68  sumAllTimeSlices = cms.bool(False),
69  forceSOI = cms.int32(0)
70 )
71 hfprerecoMBNZS = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
72  digiLabel = cms.InputTag("hcalDigiAlCaMB"),
73  dropZSmarkedPassed = cms.bool(False),
74  tsFromDB = cms.bool(False),
75  sumAllTimeSlices = cms.bool(True),
76  forceSOI = cms.int32(1)
77 )
78 
79 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
80 _phase1_hfrecoNoise = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
81  inputLabel = cms.InputTag("hfprerecoNoise"),
82  setNoiseFlags = cms.bool(False),
83  algorithm = dict(
84  Class = cms.string("HFSimpleTimeCheck"),
85  rejectAllFailures = cms.bool(False)
86  ),
87 )
88 _phase1_hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
89  inputLabel = cms.InputTag("hfprerecoMBNZS"),
90  setNoiseFlags = cms.bool(False),
91  algorithm = dict(
92  Class = cms.string("HFSimpleTimeCheck"),
93  rejectAllFailures = cms.bool(False)
94  ),
95 )
96 
97 _phase1_seqALCARECOHcalCalMinBias = seqALCARECOHcalCalMinBias.copy()
98 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoMBNZS)
99 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoNoise)
100 
101 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
102 run2_HF_2017.toReplaceWith( seqALCARECOHcalCalMinBias, _phase1_seqALCARECOHcalCalMinBias )
103 run2_HF_2017.toReplaceWith( hfrecoNoise, _phase1_hfrecoNoise )
104 run2_HF_2017.toReplaceWith( hfrecoMBNZS, _phase1_hfrecoMBNZS )
105 
106 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
107 hbheplan1MBNZS = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
108  hbheInput = cms.InputTag("hbheprerecoMBNZS")
109 )
110 hbheplan1Noise = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
111  hbheInput = cms.InputTag("hbheprerecoNoise")
112 )
113 
114 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
115 run2_HCAL_2017.toModify( hbherecoMBNZS,
116  processQIE11 = cms.bool(True),
117 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
118 # setNoiseFlagsQIE11 = cms.bool(True),
119 )
120 run2_HCAL_2017.toModify( hbherecoNoise,
121  processQIE11 = cms.bool(True),
122 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
123 # setNoiseFlagsQIE11 = cms.bool(True),
124 )
125 
126 _plan1_seqALCARECOHcalCalMinBias = _phase1_seqALCARECOHcalCalMinBias.copy()
127 hbheprerecoMBNZS = hbherecoMBNZS.clone()
128 hbheprerecoNoise = hbherecoNoise.clone()
129 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoNoise)
130 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoMBNZS)
131 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
132 run2_HEPlan1_2017.toReplaceWith(hbherecoMBNZS, hbheplan1MBNZS)
133 run2_HEPlan1_2017.toReplaceWith(hbherecoNoise, hbheplan1Noise)
134 run2_HEPlan1_2017.toReplaceWith(seqALCARECOHcalCalMinBias, _plan1_seqALCARECOHcalCalMinBias)