File indexing completed on 2024-04-06 12:03:44
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 from SimCalorimetry.Configuration.SimCalorimetry_cff import *
0018
0019
0020
0021 from SimMuon.Configuration.SimMuon_cff import *
0022
0023
0024
0025 from SimPPS.Configuration.SimPPS_cff import *
0026
0027
0028
0029
0030 from SimGeneral.Configuration.SimGeneral_cff import *
0031
0032 from SimTracker.Configuration.SimTrackerLinks_cff import *
0033
0034
0035 from Configuration.StandardSequences.Generator_cff import *
0036 from GeneratorInterface.Core.generatorSmeared_cfi import *
0037
0038 doAllDigiTask = cms.Task(generatorSmeared, calDigiTask, muonDigiTask, ctppsDigiTask)
0039 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0040
0041 premix_stage2.toReplaceWith(doAllDigiTask, doAllDigiTask.copyAndExclude([muonDigiTask]))
0042
0043 pdigiTask_nogen = cms.Task(generatorSmeared, cms.TaskPlaceholder("randomEngineStateProducer"), cms.TaskPlaceholder("mix"), doAllDigiTask, addPileupInfo)
0044
0045 premix_stage2.toReplaceWith(pdigiTask_nogen, pdigiTask_nogen.copyAndExclude([addPileupInfo]))
0046
0047 pdigiTask = cms.Task(pdigiTask_nogen, fixGenInfoTask, tpPruningTask)
0048
0049 doAllDigi = cms.Sequence(doAllDigiTask)
0050 pdigi = cms.Sequence(pdigiTask)
0051 pdigi_valid = cms.Sequence(pdigiTask)
0052 pdigi_nogen=cms.Sequence(pdigiTask_nogen)
0053 pdigi_valid_nogen=cms.Sequence(pdigiTask_nogen)
0054
0055 from GeneratorInterface.HiGenCommon.HeavyIon_cff import *
0056 pdigiTask_hi = cms.Task(pdigiTask, heavyIon)
0057 pdigiTask_hi_nogen = cms.Task(pdigiTask_nogen, genJetMETTask, heavyIon)
0058 pdigi_hi=cms.Sequence(pdigiTask_hi)
0059 pdigi_hi_nogen=cms.Sequence(pdigiTask_hi_nogen)
0060
0061
0062
0063 def _premixStage2GenPUProtons(process):
0064 process.load("SimGeneral.PileupInformation.genPUProtons_cfi")
0065 process.pdigiTask_nogen.add(process.genPUProtons)
0066 modifyDigi_premixStage2GenPUProtons = (~premix_stage2).makeProcessModifier(_premixStage2GenPUProtons)
0067
0068 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0069 def _fastSimDigis(process):
0070 import FastSimulation.Configuration.DigiAliases_cff as DigiAliases
0071
0072
0073
0074 from FastSimulation.Configuration.DigiAliases_cff import loadDigiAliases
0075 loadDigiAliases(process)
0076
0077 modifyDigi_fastSimDigis = (fastSim & ~premix_stage1).makeProcessModifier(_fastSimDigis)
0078
0079
0080 def _modifyEnableHcalHardcode( theProcess ):
0081 from CalibCalorimetry.HcalPlugins.Hcal_Conditions_forGlobalTag_cff import hcal_db_producer as _hcal_db_producer, es_hardcode as _es_hardcode, es_prefer_hcalHardcode as _es_prefer_hcalHardcode
0082 theProcess.hcal_db_producer = _hcal_db_producer
0083 theProcess.es_hardcode = _es_hardcode
0084 theProcess.es_prefer_hcalHardcode = _es_prefer_hcalHardcode
0085
0086 from Configuration.Eras.Modifier_hcalHardcodeConditions_cff import hcalHardcodeConditions
0087 modifyEnableHcalHardcode_ = hcalHardcodeConditions.makeProcessModifier( _modifyEnableHcalHardcode )