CMS 3D CMS Logo

Functions

DigiToRecoPU Namespace Reference

Functions

def customise

Function Documentation

def DigiToRecoPU::customise (   process)

Definition at line 3 of file DigiToRecoPU.py.

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     process.mix.playback = cms.untracked.bool(True)
00023 
00024     # Remove the old RNGState product on output
00025     RNGStateCleaning= cms.PSet(
00026         outputCommands=cms.untracked.vstring('drop RandomEngineStates_*_*_*',
00027                                              'keep RandomEngineStates_*_*_'+process.name_())
00028         )
00029 
00030     for item in process.outputModules_().values():
00031         item.outputCommands.extend(RNGStateCleaning.outputCommands)
00032 
00033     # REDO the GenJets etc. in case labels have been changed
00034     process.load('Configuration/StandardSequences/Generator_cff')
00035     process.fixGenInfo = cms.Path(process.GeneInfo * process.genJetMET)
00036     process.schedule.append(process.fixGenInfo)
00037 
00038     return(process)