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.digiLabelQIE8 = cms.InputTag(
"simHcalDigis")
86 process.hbheprereco.digiLabelQIE11 = cms.InputTag(
"simHcalDigis",
"HBHEQIE11DigiCollection")
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.hfprereco.digiLabel = cms.InputTag(
"simHcalDigis",
"HFQIE10DigiCollection")
93 if hasattr(process,
'datamixing_step'):
95 if hasattr(process,
'simHcalTriggerPrimitiveDigis'):
96 process.simHcalTriggerPrimitiveDigis.upgradeHF = cms.bool(
True)
97 if hasattr(process,
'dqmoffline_step'):
98 process.digiTask.tagHBHE = cms.untracked.InputTag(
"simHcalDigis")
99 process.digiTask.tagHF = cms.untracked.InputTag(
"simHcalDigis")
100 process.digiTask.tagHO = cms.untracked.InputTag(
"simHcalDigis")
103 process.load(
'DQM.HcalTasks.DigiPhase1Task')
104 process.dqmoffline_step += process.digiPhase1Task
105 process.digiPhase1Task.tagHBHE = cms.untracked.InputTag(
"simHcalDigis",
"HBHEQIE11DigiCollection")
106 process.digiPhase1Task.tagHO = cms.untracked.InputTag(
"simHcalDigis")
107 process.digiPhase1Task.tagHF = cms.untracked.InputTag(
"simHcalDigis",
"HFQIE10DigiCollection")
109 if hasattr(process,
'validation_step'):
110 process.AllHcalDigisValidation.digiLabel = cms.string(
"simHcalDigis")
117 process.es_hardcode.testHEPlan1 = cms.bool(
True)
125 process.es_hardcode.useHEUpgrade = cms.bool(
True)
127 if hasattr(process,
'reconstruction_step'):
129 from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
import hbheprereco
130 process.globalReplace(
"hbheprereco", hbheprereco)
131 process.hbheprereco.saveInfos = cms.bool(
True)
132 process.hbheprereco.digiLabelQIE8 = cms.InputTag(
"simHcalDigis")
133 process.hbheprereco.digiLabelQIE11 = cms.InputTag(
"simHcalDigis",
"HBHEQIE11DigiCollection")
135 if hasattr(process,
'simHcalTriggerPrimitiveDigis'):
136 process.simHcalTriggerPrimitiveDigis.upgradeHE = cms.bool(
True)
143 process.es_hardcode.HEreCalibCutoff = cms.double(100.)
144 process.es_hardcode.useHBUpgrade = cms.bool(
True)
145 process.es_hardcode.useHEUpgrade = cms.bool(
True)
146 process.es_hardcode.useHFUpgrade = cms.bool(
True)
148 if hasattr(process,
'g4SimHits'):
150 if hasattr(process,
'DigiToRaw'):
152 if hasattr(process,
'RawToDigi'):
154 if hasattr(process,
'digitisation_step'):
156 if hasattr(process,
'reconstruction_step'):
158 if hasattr(process,
'dqmoffline_step'):
160 if hasattr(process,
'dqmHarvesting'):
162 if hasattr(process,
'validation_step'):
164 if hasattr(process,
'simHcalTriggerPrimitiveDigis'):
165 process.simHcalTriggerPrimitiveDigis.upgradeHF = cms.bool(
True)
166 process.simHcalTriggerPrimitiveDigis.upgradeHE = cms.bool(
True)
167 process.simHcalTriggerPrimitiveDigis.upgradeHB = cms.bool(
True)
173 process.g4SimHits.HCalSD.TestNumberingScheme =
True 178 process.digi2raw_step.remove(process.hcalRawData)
183 process.raw2digi_step.remove(process.hcalDigis)
188 if hasattr(process,
'mix'):
189 process.mix.digitizers.hcal.HBHEUpgradeQIE =
True 190 process.mix.digitizers.hcal.hb.photoelectronsToAnalog = cms.vdouble([10.]*16)
191 process.mix.digitizers.hcal.hb.pixels = cms.int32(4500*4*2)
192 process.mix.digitizers.hcal.he.photoelectronsToAnalog = cms.vdouble([10.]*16)
193 process.mix.digitizers.hcal.he.pixels = cms.int32(4500*4*2)
194 process.mix.digitizers.hcal.HFUpgradeQIE =
True 195 process.mix.digitizers.hcal.TestNumbering =
True 197 if hasattr(process,
'simHcalDigis'):
198 process.simHcalDigis.useConfigZSvalues=cms.int32(1)
199 process.simHcalDigis.HBlevel=cms.int32(16)
200 process.simHcalDigis.HElevel=cms.int32(16)
201 process.simHcalDigis.HOlevel=cms.int32(16)
202 process.simHcalDigis.HFlevel=cms.int32(16)
204 process.digitisation_step.remove(process.simHcalTriggerPrimitiveDigis)
205 process.digitisation_step.remove(process.simHcalTTPDigis)
211 process.reconstruction_step.remove(process.castorreco)
212 process.reconstruction_step.remove(process.CastorTowerReco)
213 process.reconstruction_step.remove(process.ak7CastorJets)
214 process.reconstruction_step.remove(process.ak7CastorJetID)
218 process.dqmoffline_step.remove(process.hcalDigiMonitor)
219 process.dqmoffline_step.remove(process.hcalDeadCellMonitor)
220 process.dqmoffline_step.remove(process.hcalBeamMonitor)
221 process.dqmoffline_step.remove(process.hcalRecHitMonitor)
222 process.dqmoffline_step.remove(process.hcalDetDiagNoiseMonitor)
223 process.dqmoffline_step.remove(process.hcalNoiseMonitor)
224 process.dqmoffline_step.remove(process.RecHitsDQMOffline)
225 process.dqmoffline_step.remove(process.zdcMonitor)
226 process.dqmoffline_step.remove(process.hcalMonitor)
227 process.dqmoffline_step.remove(process.hcalHotCellMonitor)
228 process.dqmoffline_step.remove(process.hcalRawDataMonitor)
235 process.validation_step.remove(process.AllHcalDigisValidation)
236 process.validation_step.remove(process.RecHitsValidation)
237 process.validation_step.remove(process.globalhitsanalyze)
244 process.mixData.HBHEPileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis")
245 process.mixData.HOPileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis")
246 process.mixData.HFPileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis")
247 process.mixData.QIE10PileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis",
"HFQIE10DigiCollection")
248 process.mixData.QIE11PileInputTag = cms.InputTag(
"simHcalUnsuppressedDigis",
"HBHEQIE11DigiCollection")
def load_HcalHardcode(process)
def customise_mixing(process)
def customise_Hcal2017Full(process)
def customise_DQM(process)
def customise_Digi(process)
def customise_condOverRides(process)
def customise_Sim(process)
def customise_Reco(process)
def customise_harvesting(process)
def customise_Hcal2016(process)
def customise_Hcal2017Plan1(process)
def customise_DigiToRaw(process)
def customise_Validation(process)
def customise_HcalPhase0(process)
def customise_RawToDigi(process)
def customise_HcalPhase1(process)
def customise_Hcal2017(process)