1 import FWCore.ParameterSet.Config
as cms
4 process.load(
"CalibCalorimetry/HcalPlugins/Hcal_Conditions_forGlobalTag_cff")
6 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
7 process.mix.digitizers.hcal.TestNumbering=
True
9 process.es_hardcode.HEreCalibCutoff = cms.double(20.)
11 process.es_hardcode.toGet = cms.untracked.vstring(
17 if hasattr(process,
'g4SimHits'):
19 if hasattr(process,
'validation_step'):
26 process.load(
"CalibCalorimetry/HcalPlugins/Hcal_Conditions_forGlobalTag_cff")
27 process.es_hardcode.toGet = cms.untracked.vstring(
48 'SiPMCharacteristics',
49 'TPChannelParameters',
51 'FlagHFDigiTimeParams',
55 process.es_hardcode.GainWidthsForTrigPrims = cms.bool(
True)
64 process.es_hardcode.testHFQIE10 = cms.bool(
True)
67 if hasattr(process,
'reconstruction_step'):
68 process.hbheprereco.setNoiseFlags = cms.bool(
False)
77 process.es_hardcode.useHFUpgrade = cms.bool(
True)
80 if hasattr(process,
'DigiToRaw'):
82 if hasattr(process,
'RawToDigi'):
84 if hasattr(process,
'reconstruction_step'):
85 process.hbheprereco.digiLabel = cms.InputTag(
"simHcalDigis")
86 process.hbheprereco.setNoiseFlags = cms.bool(
False)
88 process.horeco.digiLabel = cms.InputTag(
"simHcalDigis")
89 process.zdcreco.digiLabel = cms.InputTag(
"simHcalUnsuppressedDigis")
90 process.zdcreco.digiLabelhcal = cms.InputTag(
"simHcalUnsuppressedDigis")
91 process.hcalnoise.digiCollName = cms.string(
'simHcalDigis')
92 process.load(
"RecoLocalCalo.HcalRecProducers.hfprereco_cfi")
93 process.hfprereco.digiLabel = cms.InputTag(
"simHcalDigis",
"HFQIE10DigiCollection")
94 process.localreco += process.hfprereco
95 from RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
import hfreco
96 process.globalReplace(
"hfreco", hfreco)
97 if hasattr(process,
'datamixing_step'):
99 if hasattr(process,
'simHcalTriggerPrimitiveDigis'):
100 process.simHcalTriggerPrimitiveDigis.upgradeHF = cms.bool(
True)
101 if hasattr(process,
'dqmoffline_step'):
102 process.digiTask.tagHBHE = cms.untracked.InputTag(
"simHcalDigis")
103 process.digiTask.tagHF = cms.untracked.InputTag(
"simHcalDigis")
104 process.digiTask.tagHO = cms.untracked.InputTag(
"simHcalDigis")
107 process.load(
'DQM.HcalTasks.DigiPhase1Task')
108 process.dqmoffline_step += process.digiPhase1Task
109 process.digiPhase1Task.tagHBHE = cms.untracked.InputTag(
"simHcalDigis",
"HBHEQIE11DigiCollection")
110 process.digiPhase1Task.tagHO = cms.untracked.InputTag(
"simHcalDigis")
111 process.digiPhase1Task.tagHF = cms.untracked.InputTag(
"simHcalDigis",
"HFQIE10DigiCollection")
113 if hasattr(process,
'validation_step'):
114 process.AllHcalDigisValidation.digiLabel = cms.string(
"simHcalDigis")
123 process.es_hardcode.useHEUpgrade = cms.bool(
True)
125 if hasattr(process,
'reconstruction_step'):
127 from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
import hbheprereco
128 process.globalReplace(
"hbheprereco", hbheprereco)
129 process.hbheprereco.saveInfos = cms.bool(
True)
130 process.hbheprereco.digiLabelQIE8 = cms.InputTag(
"simHcalDigis")
131 process.hbheprereco.digiLabelQIE11 = cms.InputTag(
"simHcalDigis",
"HBHEQIE11DigiCollection")
133 if hasattr(process,
'simHcalTriggerPrimitiveDigis'):
134 process.simHcalTriggerPrimitiveDigis.upgradeHE = cms.bool(
True)
141 process.es_hardcode.HEreCalibCutoff = cms.double(100.)
142 process.es_hardcode.useHBUpgrade = cms.bool(
True)
143 process.es_hardcode.useHEUpgrade = cms.bool(
True)
144 process.es_hardcode.useHFUpgrade = cms.bool(
True)
146 if hasattr(process,
'g4SimHits'):
148 if hasattr(process,
'DigiToRaw'):
150 if hasattr(process,
'RawToDigi'):
152 if hasattr(process,
'digitisation_step'):
154 if hasattr(process,
'reconstruction_step'):
156 if hasattr(process,
'dqmoffline_step'):
158 if hasattr(process,
'dqmHarvesting'):
160 if hasattr(process,
'validation_step'):
162 if hasattr(process,
'simHcalTriggerPrimitiveDigis'):
163 process.simHcalTriggerPrimitiveDigis.upgradeHF = cms.bool(
True)
164 process.simHcalTriggerPrimitiveDigis.upgradeHE = cms.bool(
True)
165 process.simHcalTriggerPrimitiveDigis.upgradeHB = cms.bool(
True)
171 process.g4SimHits.HCalSD.TestNumberingScheme =
True
176 process.digi2raw_step.remove(process.hcalRawData)
181 process.raw2digi_step.remove(process.hcalDigis)
186 if hasattr(process,
'mix'):
187 process.mix.digitizers.hcal.HBHEUpgradeQIE =
True
188 process.mix.digitizers.hcal.hb.photoelectronsToAnalog = cms.vdouble([10.]*16)
189 process.mix.digitizers.hcal.hb.pixels = cms.int32(4500*4*2)
190 process.mix.digitizers.hcal.he.photoelectronsToAnalog = cms.vdouble([10.]*16)
191 process.mix.digitizers.hcal.he.pixels = cms.int32(4500*4*2)
192 process.mix.digitizers.hcal.HFUpgradeQIE =
True
193 process.mix.digitizers.hcal.TestNumbering =
True
195 if hasattr(process,
'simHcalDigis'):
196 process.simHcalDigis.useConfigZSvalues=cms.int32(1)
197 process.simHcalDigis.HBlevel=cms.int32(16)
198 process.simHcalDigis.HElevel=cms.int32(16)
199 process.simHcalDigis.HOlevel=cms.int32(16)
200 process.simHcalDigis.HFlevel=cms.int32(16)
202 process.digitisation_step.remove(process.simHcalTriggerPrimitiveDigis)
203 process.digitisation_step.remove(process.simHcalTTPDigis)
209 process.reconstruction_step.remove(process.castorreco)
210 process.reconstruction_step.remove(process.CastorTowerReco)
211 process.reconstruction_step.remove(process.ak7CastorJets)
212 process.reconstruction_step.remove(process.ak7CastorJetID)
216 process.dqmoffline_step.remove(process.hcalDigiMonitor)
217 process.dqmoffline_step.remove(process.hcalDeadCellMonitor)
218 process.dqmoffline_step.remove(process.hcalBeamMonitor)
219 process.dqmoffline_step.remove(process.hcalRecHitMonitor)
220 process.dqmoffline_step.remove(process.hcalDetDiagNoiseMonitor)
221 process.dqmoffline_step.remove(process.hcalNoiseMonitor)
222 process.dqmoffline_step.remove(process.RecHitsDQMOffline)
223 process.dqmoffline_step.remove(process.zdcMonitor)
224 process.dqmoffline_step.remove(process.hcalMonitor)
225 process.dqmoffline_step.remove(process.hcalHotCellMonitor)
226 process.dqmoffline_step.remove(process.hcalRawDataMonitor)
233 process.validation_step.remove(process.AllHcalDigisValidation)
234 process.validation_step.remove(process.RecHitsValidation)
235 process.validation_step.remove(process.globalhitsanalyze)
242 process.mixData.HBHEPileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis")
243 process.mixData.HOPileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis")
244 process.mixData.HFPileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis")
245 process.mixData.QIE10PileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis",
"HFQIE10DigiCollection")
246 process.mixData.QIE11PileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis",
"HBHEQIE11DigiCollection")
def customise_Hcal2017Full
def customise_condOverRides