CMS 3D CMS Logo

Functions

MixingModule Namespace Reference

Functions

def customise

Function Documentation

def MixingModule::customise (   process)

Definition at line 11 of file MixingModule.py.

00012                       :
00013     #Renaming the process
00014     process.__dict__['_Process__name']=process.__dict__['_Process__name']+'-PILEUP'
00015     #Adding SimpleMemoryCheck service:
00016     process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
00017                                           ignoreTotal=cms.untracked.int32(1),
00018                                           oncePerEventMode=cms.untracked.bool(True))
00019     #Adding Timing service:
00020     process.Timing=cms.Service("Timing")
00021 
00022     #Add these 3 lines to put back the summary for timing information at the end of the logfile
00023     #(needed for TimeReport report)
00024     process.options = cms.untracked.PSet(
00025         wantSummary = cms.untracked.bool(True)
00026         )
00027             
00028     #Overwriting the fileNames to be used by the MixingModule
00029     #when invoking cmsDriver.py with the --PU option
00030     process.mix.input.fileNames = cms.untracked.vstring('file:../INPUT_PILEUP_EVENTS.root')
00031 
00032 
00033     #Add the configuration for the Igprof running to dump profile snapshots:
00034     process.IgProfService = cms.Service("IgProfService",
00035                                         reportFirstEvent            = cms.untracked.int32(1),
00036                                         reportEventInterval         = cms.untracked.int32(50),
00037                                         reportToFileAtPostEvent     = cms.untracked.string("| gzip -c > IgProf.%I.gz")
00038                                         )
00039 
00040 
00041     return(process)