test
CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def TimeMemoryInfo.customise (   process)

Definition at line 2 of file TimeMemoryInfo.py.

References reco.return().

2 
3 def customise(process):
4 
5  #Adding SimpleMemoryCheck service:
6  process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
7  ignoreTotal=cms.untracked.int32(1),
8  oncePerEventMode=cms.untracked.bool(True))
9  #Adding Timing service:
10  process.Timing=cms.Service("Timing")
11 
12  #Add these 3 lines to put back the summary for timing information at the end of the logfile
13  #(needed for TimeReport report)
14  if hasattr(process,'options'):
15  process.options.wantSummary = cms.untracked.bool(True)
16  else:
17  process.options = cms.untracked.PSet(
18  wantSummary = cms.untracked.bool(True)
19  )
20 
21  return(process)
return(e1-e2)*(e1-e2)+dp *dp