File indexing completed on 2024-04-06 12:03:44
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def customise(process):
0004 REDIGIInputEventSkimming= cms.PSet(
0005 inputCommands=cms.untracked.vstring('drop *')
0006 )
0007
0008 GeneratorInterfaceRAWNoGenParticles = process.GeneratorInterfaceRAW.outputCommands
0009 for item in GeneratorInterfaceRAWNoGenParticles:
0010 if 'genParticles' in item:
0011 GeneratorInterfaceRAWNoGenParticles.remove(item)
0012
0013 REDIGIInputEventSkimming.inputCommands.extend(process.SimG4CoreRAW.outputCommands)
0014 REDIGIInputEventSkimming.inputCommands.extend(GeneratorInterfaceRAWNoGenParticles)
0015 REDIGIInputEventSkimming.inputCommands.extend(process.IOMCRAW.outputCommands)
0016
0017 process.source.inputCommands = REDIGIInputEventSkimming.inputCommands
0018 process.source.dropDescendantsOfDroppedBranches=cms.untracked.bool(False)
0019
0020 process.RandomNumberGeneratorService.restoreStateLabel = cms.untracked.string('randomEngineStateProducer')
0021
0022
0023 RNGStateCleaning= cms.PSet(
0024 outputCommands=cms.untracked.vstring('drop RandomEngineStates_*_*_*',
0025 'keep RandomEngineStates_*_*_'+process.name_())
0026 )
0027
0028 for item in process.outputModules_().values():
0029 item.outputCommands.extend(RNGStateCleaning.outputCommands)
0030
0031
0032 process.load('Configuration/StandardSequences/Generator_cff')
0033 process.fixGenInfo = cms.Path(process.GeneInfo * process.genJetMET)
0034 process.schedule.append(process.fixGenInfo)
0035
0036 return(process)