1 import FWCore.ParameterSet.Config
as cms
5 Important note to developers: the random number services of the GEM and
6 ME0 digi modules are no longer initialized in this file. Instead, they
7 are automically initialized through the --era (Run3, Phase2) command.
8 In case cmsRun or cmsDriver crashes because of RandomNumberGeneratorSerivce,
9 you may have forgotten to specify the correct era!
20 process.mix.digitizers = digitizers = cms.PSet()
21 digi_aliases = [n
for n
in process.aliases.keys()
if 'Digi' in n]
22 for a
in digi_aliases: process.__delattr__(a)
24 process.mix.mixObjects = theMixObjects
25 process.mix.mixObjects.mixCH = cms.PSet()
26 process.mix.mixObjects.mixSH.crossingFrames = cms.untracked.vstring(
31 process.mix.mixObjects.mixSH.input = cms.VInputTag(
32 cms.InputTag(
"g4SimHits",
"MuonCSCHits"),
33 cms.InputTag(
"g4SimHits",
"MuonDTHits"),
34 cms.InputTag(
"g4SimHits",
"MuonRPCHits")
36 process.mix.mixObjects.mixSH.subdets = cms.vstring(
46 process.mix.mixObjects.mixSH.crossingFrames.append(
'MuonGEMHits')
47 process.mix.mixObjects.mixSH.input.append(cms.InputTag(
"g4SimHits",
"MuonGEMHits"))
48 process.mix.mixObjects.mixSH.subdets.append(
'MuonGEMHits')
54 process.mix.mixObjects.mixSH.crossingFrames.append(
'MuonME0Hits')
55 process.mix.mixObjects.mixSH.input.append(cms.InputTag(
"g4SimHits",
"MuonME0Hits"))
56 process.mix.mixObjects.mixSH.subdets.append(
'MuonME0Hits')
62 process.load(
'SimMuon.GEMDigitizer.muonGEMDigi_cff')
68 process.load(
'SimMuon.GEMDigitizer.muonME0Digi_cff')
105 process.pdigi = cms.Sequence(
106 cms.SequencePlaceholder(
"randomEngineStateProducer")*
107 cms.SequencePlaceholder(
"mix")*
118 process.pdigi = cms.Sequence(
119 cms.SequencePlaceholder(
"randomEngineStateProducer")*
120 cms.SequencePlaceholder(
"mix")*
123 process = append_ME0Digi_event(process)
132 process.pdigi = cms.Sequence(
133 cms.SequencePlaceholder(
"randomEngineStateProducer")*
134 cms.SequencePlaceholder(
"mix")*
146 process.muonDigi = cms.Sequence(
147 process.simMuonCSCDigis +
148 process.simMuonDTDigis +
149 process.simMuonRPCDigis +
152 process.pdigi = cms.Sequence(
153 cms.SequencePlaceholder(
"randomEngineStateProducer")*
154 cms.SequencePlaceholder(
"mix")*
166 process.muonDigi = cms.Sequence(
167 process.simMuonCSCDigis +
168 process.simMuonDTDigis +
169 process.simMuonRPCDigis +
170 process.muonGEMDigi +
173 process.pdigi = cms.Sequence(
174 cms.SequencePlaceholder(
"randomEngineStateProducer")*
175 cms.SequencePlaceholder(
"mix")*
186 process.doAllDigi = cms.Sequence(
191 process.pdigi = cms.Sequence(
192 cms.SequencePlaceholder(
"randomEngineStateProducer")*
193 cms.SequencePlaceholder(
"mix")*
195 process.addPileupInfo
207 process.doAllDigi = cms.Sequence(
210 process.muonGEMDigi +
213 process.pdigi = cms.Sequence(
214 cms.SequencePlaceholder(
"randomEngineStateProducer")*
215 cms.SequencePlaceholder(
"mix")*
217 process.addPileupInfo
225 alist=[
'AODSIM',
'RECOSIM',
'FEVTSIM',
'FEVTDEBUG',
'FEVTDEBUGHLT',
'RECODEBUG',
'RAWRECOSIMHLT',
'RAWRECODEBUGHLT']
228 if hasattr(process,b):
229 getattr(process,b).outputCommands.extend([
'keep *_g4SimHits_Muon*_*',
'keep *_*Muon*_*_*'])
235 process.simMuonGEMDigis.doBkgNoise =
False
239 process.simMuonGEMDigis.rateFact = 1
244 process.simMuonME0PseudoDigis.simulateElectronBkg =
False
245 process.simMuonME0PseudoDigis.simulateNeutralBkg =
False
249 process.simMuonME0PseudoDigis.rateFact = 1
254 process.simMuonRPCDigis.doBkgNoise =
False
259 process.load(
'Configuration.StandardSequences.Digi_cff')
260 process.simMuonRPCReDigis = process.simMuonRPCDigis.clone()
261 process.simMuonRPCReDigis.digiModelConfig = process.simMuonRPCDigis.digiModelConfig.clone(
262 IRPC_time_resolution = cms.double(1.5),
263 IRPC_electronics_jitter = cms.double(0.1),
265 process.simMuonRPCReDigis.digiIRPCModelConfig = process.simMuonRPCReDigis.digiModelConfig.clone(
266 IRPC_time_resolution = cms.double(1.0),
267 do_Y_coordinate = cms.bool(
True),
269 process.simMuonRPCReDigis.digiModel = cms.string(
'RPCSimModelTiming')
270 process.RandomNumberGeneratorService.simMuonRPCReDigis = cms.PSet(
271 initialSeed = cms.untracked.uint32(13579),
272 engineName = cms.untracked.string(
'TRandom3')
274 process.rpcRecHits.rpcDigiLabel = cms.InputTag(
"simMuonRPCReDigis")
275 process.validationMuonRPCDigis.rpcDigiTag = cms.untracked.InputTag(
"simMuonRPCReDigis")
276 process.reconstruction_step.replace(
278 cms.Sequence(process.simMuonRPCReDigis+process.rpcRecHits)
def customize_mix_addGEM_muon_only
def customize_mix_muon_only
def customize_digi_noRPCbkg
def customize_digi_addGEM_addME0_gem_me0_only
def load_ME0_digitizers
load the digitizer and pad producer
def customize_digi_noME0bkg
def customize_digi_addGEM_addME0
def customize_digi_noGEMbkg
def customize_digi_addGEM
def customize_digi_addGEM_gem_only
def customize_digi_noGEMsafety
def customize_digi_addGEM_addME0_muon_only
def customize_digi_noME0safety
def customize_mix_addGEM_addME0_muon_only
def customize_digi_addME0_me0_only
def customize_digi_addGEM_muon_only
def customize_mix_addME0_muon_only
def load_GEM_digitizers
load the digitizer and pad producer