CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/Configuration/StandardSequences/python/DigiToRecoPU.py

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     process.mix.playback = cms.untracked.bool(True)
00022 
00023     # Remove the old RNGState product on output
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     # REDO the GenJets etc. in case labels have been changed
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)