Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 def customise(process):
00004 REDIGIInputEventSkimming= cms.PSet(
00005 inputCommands=cms.untracked.vstring('drop *')
00006 )
00007
00008 GeneratorInterfaceRAWNoGenParticles = process.GeneratorInterfaceRAW.outputCommands
00009 for item in GeneratorInterfaceRAWNoGenParticles:
00010 if 'genParticles' in item:
00011 GeneratorInterfaceRAWNoGenParticles.remove(item)
00012
00013 REDIGIInputEventSkimming.inputCommands.extend(process.SimG4CoreRAW.outputCommands)
00014 REDIGIInputEventSkimming.inputCommands.extend(GeneratorInterfaceRAWNoGenParticles)
00015 REDIGIInputEventSkimming.inputCommands.extend(process.IOMCRAW.outputCommands)
00016
00017 process.source.inputCommands = REDIGIInputEventSkimming.inputCommands
00018 process.source.dropDescendantsOfDroppedBranches=cms.untracked.bool(False)
00019
00020 process.RandomNumberGeneratorService.restoreStateLabel = cms.untracked.string('randomEngineStateProducer')
00021
00022
00023 RNGStateCleaning= cms.PSet(
00024 outputCommands=cms.untracked.vstring('drop RandomEngineStates_*_*_*',
00025 'keep RandomEngineStates_*_*_'+process.name_())
00026 )
00027
00028 for item in process.outputModules_().values():
00029 item.outputCommands.extend(RNGStateCleaning.outputCommands)
00030
00031
00032 process.load('Configuration/StandardSequences/Generator_cff')
00033 process.fixGenInfo = cms.Path(process.GeneInfo * process.genJetMET)
00034 process.schedule.append(process.fixGenInfo)
00035
00036 return(process)