CMS 3D CMS Logo

Functions

RestoreRandomSeedsDigi Namespace Reference

Functions

def customise

Function Documentation

def RestoreRandomSeedsDigi::customise (   process)

Definition at line 7 of file RestoreRandomSeedsDigi.py.

00008                       :
00009     #Renaming the process
00010     process.__dict__['_Process__name']='DIGIRestoringSeeds'
00011     #Skipping the first 3 events:
00012     process.PoolSource.skipEvents=cms.untracked.uint32(3)
00013     #Adding RandomNumberGeneratorService
00014     process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string('rndmStore')
00015     process.RandomNumberGeneratorService.VtxSmeared.initialSeed = cms.untracked.uint32(1)
00016     process.RandomNumberGeneratorService.g4SimHits.initialSeed = cms.untracked.uint32(1)
00017     process.RandomNumberGeneratorService.mix.initialSeed = cms.untracked.uint32(1)
00018     process.RandomNumberGeneratorService.simSiPixelDigis.initialSeed = cms.untracked.uint32(1)
00019     process.RandomNumberGeneratorService.simSiStripDigis.initialSeed = cms.untracked.uint32(1)
00020     process.RandomNumberGeneratorService.simEcalUnsuppressedDigis.initialSeed = cms.untracked.uint32(1)
00021     process.RandomNumberGeneratorService.simHcalUnsuppressedDigis.initialSeed = cms.untracked.uint32(1)
00022     process.RandomNumberGeneratorService.simMuonCSCDigis.initialSeed = cms.untracked.uint32(1)
00023     process.RandomNumberGeneratorService.simMuonDTDigis.initialSeed = cms.untracked.uint32(1)
00024     process.RandomNumberGeneratorService.simMuonRPCDigis.initialSeed = cms.untracked.uint32(1)
00025     #This line is necessary to eliminate the "theSource" (i.e. source seed) in the python configuration!
00026     del process.RandomNumberGeneratorService.theSource
00027     #Adding the RandomEngine seeds to the content
00028     #process.out_step.outputCommands.append("drop *_*_*_Sim")
00029     process.output.outputCommands.append("keep RandomEngineStates_*_*_*")
00030     #process.g4SimHits_step=cms.Path(process.g4SimHits)
00031     #Modifying the schedule:
00032     #First delete the current one:
00033     del process.schedule[:]
00034     #Then add the wanted sequences
00035     process.schedule.append(process.digitisation_step)
00036     process.schedule.append(process.out_step)
00037     #Adding SimpleMemoryCheck service:
00038     process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
00039                                           ignoreTotal=cms.untracked.int32(1),
00040                                           oncePerEventMode=cms.untracked.bool(True))
00041     #Adding Timing service:
00042     process.Timing=cms.Service("Timing")
00043 
00044     #Add these 3 lines to put back the summary for timing information at the end of the logfile
00045     #(needed for TimeReport report)
00046     process.options = cms.untracked.PSet(
00047         wantSummary = cms.untracked.bool(True)
00048         )
00049     
00050     return(process)