CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
SaveRandomSeedsDigi Namespace Reference

Functions

def customise
 

Function Documentation

def SaveRandomSeedsDigi.customise (   process)

Definition at line 7 of file SaveRandomSeedsDigi.py.

References reco.return().

7 
8 def customise(process):
9  #Renaming the process
10  process.__dict__['_Process__name']='DIGISavingSeeds'
11  #Storing the random seeds
12  process.rndmStore=cms.EDProducer("RandomEngineStateProducer")
13  #Adding the RandomEngine seeds to the content
14  process.output.outputCommands.append("keep RandomEngineStates_*_*_*")
15  process.rndmStore_step=cms.Path(process.rndmStore)
16  #Modifying the schedule:
17  #First delete the current one:
18  del process.schedule[:]
19  #Then add the wanted sequences
20  process.schedule.append(process.digitisation_step)
21  process.schedule.append(process.rndmStore_step)
22  process.schedule.append(process.out_step)
23  #Adding SimpleMemoryCheck service:
24  process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
25  ignoreTotal=cms.untracked.int32(1),
26  oncePerEventMode=cms.untracked.bool(True))
27  #Adding Timing service:
28  process.Timing=cms.Service("Timing")
29 
30  #Add these 3 lines to put back the summary for timing information at the end of the logfile
31  #(needed for TimeReport report)
32  if hasattr(process,'options'):
33  process.options.wantSummary = cms.untracked.bool(True)
34  else:
35  process.options = cms.untracked.PSet(
36  wantSummary = cms.untracked.bool(True)
37  )
38 
39  return(process)
return(e1-e2)*(e1-e2)+dp *dp