CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Validation/Performance/python/RestoreRandomSeeds_cff.py

Go to the documentation of this file.
00001 def customise(process):
00002 
00003     #Renaming the process
00004     process.__dict__['_Process__name']='RestoringSeeds'
00005 
00006     #Optionally skipping the first events 
00007     #process.PoolSource.skipEvents=cms.untracked.uint32(3)
00008 
00009     #Drop on input everything but seeds to be restored
00010     process.source.inputCommands=cms.untracked.vstring('drop *',
00011          'keep RandomEngineStates_*_*_*')
00012 
00013     #Adding RandomNumberGeneratorService  
00014     process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string('randomEngineStateProducer')
00015 
00016     return(process)