CMS 3D CMS Logo

Functions

SaveRandomSeedsDigi Namespace Reference

Functions

def customise

Function Documentation

def SaveRandomSeedsDigi::customise (   process)

Definition at line 7 of file SaveRandomSeedsDigi.py.

00008                       :
00009     #Renaming the process
00010     process.__dict__['_Process__name']='DIGISavingSeeds'
00011     #Storing the random seeds
00012     process.rndmStore=cms.EDProducer("RandomEngineStateProducer")
00013     #Adding the RandomEngine seeds to the content
00014     process.output.outputCommands.append("keep RandomEngineStates_*_*_*")
00015     process.rndmStore_step=cms.Path(process.rndmStore)
00016     #Modifying the schedule:
00017     #First delete the current one:
00018     del process.schedule[:]
00019     #Then add the wanted sequences
00020     process.schedule.append(process.digitisation_step)
00021     process.schedule.append(process.rndmStore_step)
00022     process.schedule.append(process.out_step)
00023     #Adding SimpleMemoryCheck service:
00024     process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
00025                                           ignoreTotal=cms.untracked.int32(1),
00026                                           oncePerEventMode=cms.untracked.bool(True))
00027     #Adding Timing service:
00028     process.Timing=cms.Service("Timing")
00029     
00030     #Add these 3 lines to put back the summary for timing information at the end of the logfile
00031     #(needed for TimeReport report)
00032     process.options = cms.untracked.PSet(
00033         wantSummary = cms.untracked.bool(True)
00034         )
00035     
00036     return(process)