test
CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def MixingModule.customise (   process)

Definition at line 11 of file MixingModule.py.

References reco.return().

11 
12 def customise(process):
13  #Renaming the process
14  process.__dict__['_Process__name']=process.__dict__['_Process__name']+'-PILEUP'
15  #Adding SimpleMemoryCheck service:
16  process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
17  ignoreTotal=cms.untracked.int32(1),
18  oncePerEventMode=cms.untracked.bool(True))
19  #Adding Timing service:
20  process.Timing=cms.Service("Timing")
21 
22  #Add these 3 lines to put back the summary for timing information at the end of the logfile
23  #(needed for TimeReport report)
24  if hasattr(process,'options'):
25  process.options.wantSummary = cms.untracked.bool(True)
26  else:
27  process.options = cms.untracked.PSet(
28  wantSummary = cms.untracked.bool(True)
29  )
30 
31  #Overwriting the fileNames to be used by the MixingModule
32  #when invoking cmsDriver.py with the --PU option
33  process.mix.input.fileNames = cms.untracked.vstring('file:../INPUT_PILEUP_EVENTS.root')
34 
35 
36  #Add the configuration for the Igprof running to dump profile snapshots:
37  process.IgProfService = cms.Service("IgProfService",
38  reportFirstEvent = cms.untracked.int32(1),
39  reportEventInterval = cms.untracked.int32(50),
40  reportToFileAtPostEvent = cms.untracked.string("| gzip -c > IgProf.%I.gz")
41  )
42 
43 
44  return(process)
return(e1-e2)*(e1-e2)+dp *dp