CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def TimeMemorySummary.customise (   process)

Definition at line 2 of file TimeMemorySummary.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(False))
9  #Adding Timing service:
10  process.Timing=cms.Service("Timing",
11  summaryOnly=cms.untracked.bool(True))
12 
13  #Add these 3 lines to put back the summary for timing information at the end of the logfile
14  #(needed for TimeReport report)
15  process.options = cms.untracked.PSet(
16  wantSummary = cms.untracked.bool(True)
17  )
18 
19  return(process)
return(e1-e2)*(e1-e2)+dp *dp