1 import FWCore.ParameterSet.Config
as cms
2 from SLHCUpgradeSimulations.Configuration.postLS1Customs
import customisePostLS1
3 from SLHCUpgradeSimulations.Configuration.customise_mixing
import customise_NoCrossing
4 from SLHCUpgradeSimulations.Configuration.phase1TkCustoms
import customise
as customisePhase1Tk
5 from SLHCUpgradeSimulations.Configuration.HCalCustoms
import customise_HcalPhase1, customise_HcalPhase0
7 from SLHCUpgradeSimulations.Configuration.gemCustoms
import customise2019
as customise_gem2019
8 from SLHCUpgradeSimulations.Configuration.gemCustoms
import customise2023
as customise_gem2023
9 from SLHCUpgradeSimulations.Configuration.me0Customs
import customise
as customise_me0
10 from SLHCUpgradeSimulations.Configuration.rpcCustoms
import customise
as customise_rpc
11 from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads
import fixRPCConditions
13 import SLHCUpgradeSimulations.Configuration.aging
as aging
15 from Configuration.StandardSequences.Eras
import eras
19 if not eras.run2_common.isChosen():
21 process=customisePhase1Tk(process)
27 process=customisePhase1Tk(process)
33 process=customise_gem2019(process)
37 process=customise_gem2023(process)
38 process=customise_rpc(process)
47 process = customise_rpc(process)
50 process = customisePhase1Tk(process)
51 if hasattr(process,
'L1simulation_step'):
52 process.simEcalTriggerPrimitiveDigis.BarrelOnly = cms.bool(
True)
53 if hasattr(process,
'digitisation_step'):
54 if hasattr(process.mix.digitizers,
'ecal'):
55 process.mix.digitizers.ecal.doEE = cms.bool(
False)
56 process.mix.digitizers.ecal.doES = cms.bool(
False)
57 process.load(
'SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi')
58 process.mix.digitizers.hgceeDigitizer=process.hgceeDigitizer
59 process.mix.digitizers.hgchebackDigitizer=process.hgchebackDigitizer
60 process.mix.digitizers.hgchefrontDigitizer=process.hgchefrontDigitizer
62 newFactors = cms.vdouble(
63 210.55, 197.93, 186.12, 189.64, 189.63,
64 189.96, 190.03, 190.11, 190.18, 190.25,
65 190.32, 190.40, 190.47, 190.54, 190.61,
66 190.69, 190.83, 190.94, 190.94, 190.94,
67 190.94, 190.94, 190.94, 190.94, 190.94,
68 190.94, 190.94, 190.94, 190.94, 190.94,
69 190.94, 190.94, 190.94, 190.94, 190.94,
70 190.94, 190.94, 190.94, 190.94, 190.94)
71 process.mix.digitizers.hcal.he.samplingFactors = newFactors
72 process.mix.digitizers.hcal.he.photoelectronsToAnalog = cms.vdouble([10.]*len(newFactors))
75 process.mix.mixObjects.mixCH.input.append( cms.InputTag(
"g4SimHits",process.hgceeDigitizer.hitCollection.value()) )
76 process.mix.mixObjects.mixCH.input.append( cms.InputTag(
"g4SimHits",process.hgchebackDigitizer.hitCollection.value()) )
77 process.mix.mixObjects.mixCH.input.append( cms.InputTag(
"g4SimHits",process.hgchefrontDigitizer.hitCollection.value()) )
78 process.mix.mixObjects.mixCH.subdets.append( process.hgceeDigitizer.hitCollection.value() )
79 process.mix.mixObjects.mixCH.subdets.append( process.hgchebackDigitizer.hitCollection.value() )
80 process.mix.mixObjects.mixCH.subdets.append( process.hgchefrontDigitizer.hitCollection.value() )
88 process = customise_me0(process)
94 process=process.agePixel(process,lumi)
199 if not hasattr(process.GlobalTag,
'toGet'):
200 process.GlobalTag.toGet=cms.VPSet()
201 process.GlobalTag.toGet.extend( cms.VPSet(
202 cms.PSet(record = cms.string(
"EcalSRSettingsRcd"),
203 tag = cms.string(
"EcalSRSettings_TL150_mc"),
204 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
208 process.GlobalTag.toGet.extend( cms.VPSet(
209 cms.PSet(record = cms.string(
"EcalTPGLutIdMapRcd"),
210 tag = cms.string(
"EcalTPGLutIdMap_beamv5_upgrade_mc"),
211 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
218 if not hasattr(process.GlobalTag,
'toGet'):
219 process.GlobalTag.toGet=cms.VPSet()
220 process.GlobalTag.toGet.extend( cms.VPSet(
221 cms.PSet(record = cms.string(
"EcalSRSettingsRcd"),
222 tag = cms.string(
"EcalSRSettings_TL100_mc"),
223 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
227 process.GlobalTag.toGet.extend( cms.VPSet(
228 cms.PSet(record = cms.string(
"EcalTPGLutIdMapRcd"),
229 tag = cms.string(
"EcalTPGLutIdMap_beamv5_upgrade_mc"),
230 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
237 if not hasattr(process.GlobalTag,
'toGet'):
238 process.GlobalTag.toGet=cms.VPSet()
239 process.GlobalTag.toGet.extend( cms.VPSet(
240 cms.PSet(record = cms.string(
"EcalSRSettingsRcd"),
241 tag = cms.string(
"EcalSRSettings_TL200_mc"),
242 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
246 process.GlobalTag.toGet.extend( cms.VPSet(
247 cms.PSet(record = cms.string(
"EcalTPGLutIdMapRcd"),
248 tag = cms.string(
"EcalTPGLutIdMap_beamv5_upgrade_mc"),
249 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
256 if not hasattr(process.GlobalTag,
'toGet'):
257 process.GlobalTag.toGet=cms.VPSet()
258 process.GlobalTag.toGet.extend( cms.VPSet(
259 cms.PSet(record = cms.string(
"EcalSRSettingsRcd"),
260 tag = cms.string(
"EcalSRSettings_TL300_mc"),
261 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
265 process.GlobalTag.toGet.extend( cms.VPSet(
266 cms.PSet(record = cms.string(
"EcalTPGLutIdMapRcd"),
267 tag = cms.string(
"EcalTPGLutIdMap_beamv5_upgrade_mc"),
268 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
275 if not hasattr(process.GlobalTag,
'toGet'):
276 process.GlobalTag.toGet=cms.VPSet()
277 process.GlobalTag.toGet.extend( cms.VPSet(
278 cms.PSet(record = cms.string(
"EcalSRSettingsRcd"),
279 tag = cms.string(
"EcalSRSettings_TL500_mc"),
280 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
284 process.GlobalTag.toGet.extend( cms.VPSet(
285 cms.PSet(record = cms.string(
"EcalTPGLutIdMapRcd"),
286 tag = cms.string(
"EcalTPGLutIdMap_beamv5_upgrade_mc"),
287 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
294 if not hasattr(process.GlobalTag,
'toGet'):
295 process.GlobalTag.toGet=cms.VPSet()
296 process.GlobalTag.toGet.extend( cms.VPSet(
297 cms.PSet(record = cms.string(
"EcalSRSettingsRcd"),
298 tag = cms.string(
"EcalSRSettings_TL1000_mc"),
299 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
303 process.GlobalTag.toGet.extend( cms.VPSet(
304 cms.PSet(record = cms.string(
"EcalTPGLutIdMapRcd"),
305 tag = cms.string(
"EcalTPGLutIdMap_beamv5_3GeV_upgrade_mc"),
306 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
313 if not hasattr(process.GlobalTag,
'toGet'):
314 process.GlobalTag.toGet=cms.VPSet()
315 process.GlobalTag.toGet.extend( cms.VPSet(
316 cms.PSet(record = cms.string(
"EcalSRSettingsRcd"),
317 tag = cms.string(
"EcalSRSettings_TL3000_mc"),
318 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
322 process.GlobalTag.toGet.extend( cms.VPSet(
323 cms.PSet(record = cms.string(
"EcalTPGLutIdMapRcd"),
324 tag = cms.string(
"EcalTPGLutIdMap_beamv5_4GeV_upgrade_mc"),
325 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
def customise_aging_ecalonly_3000
def customise_aging_newpixel_1000
def fixEcalConditions_150
def fixEcalConditions_100
def fixEcalConditions_500
def agePixel
clone aging.py here
def fixEcalConditions_3000
def ecal_complete_aging_1000
def ecal_complete_aging_3000
def ecal_complete_aging_300
def fixEcalConditions_300
def cust_2023HGCal_common
def ecal_complete_aging_300
def turn_on_Pixel_aging_1000
def fixEcalConditions_200
def customise_aging_newpixel_3000
def ecal_complete_aging_3000
def customise_aging_ecalonly_300
def customise_aging_ecalonly_3000
def customise_aging_newpixel_3000
def customise_aging_ecalonly_1000
def customise_aging_newpixel_1000
def turn_on_Pixel_aging_1000
def customise_aging_ecalonly_300
def fixEcalConditions_1000
def ecal_complete_aging_1000
def customise_aging_ecalonly_1000