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  process.options = cms.untracked.PSet(
25  wantSummary = cms.untracked.bool(True)
26  )
27 
28  #Overwriting the fileNames to be used by the MixingModule
29  #when invoking cmsDriver.py with the --PU option
30  process.mix.input.fileNames = cms.untracked.vstring('file:../INPUT_PILEUP_EVENTS.root')
31 
32 
33  #Add the configuration for the Igprof running to dump profile snapshots:
34  process.IgProfService = cms.Service("IgProfService",
35  reportFirstEvent = cms.untracked.int32(1),
36  reportEventInterval = cms.untracked.int32(50),
37  reportToFileAtPostEvent = cms.untracked.string("| gzip -c > IgProf.%I.gz")
38  )
39 
40 
41  return(process)
return(e1-e2)*(e1-e2)+dp *dp