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