CMS 3D CMS Logo

Functions

TimeMemoryGenSummary Namespace Reference

Functions

def customise

Function Documentation

def TimeMemoryGenSummary::customise (   process)

Definition at line 11 of file TimeMemoryGenSummary.py.

00012                       :
00013     #Adding SimpleMemoryCheck service:
00014     process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
00015                                           ignoreTotal=cms.untracked.int32(1),
00016                                           oncePerEventMode=cms.untracked.bool(False))
00017     #Adding Timing service:
00018     process.Timing=cms.Service("Timing",
00019                                summaryOnly=cms.untracked.bool(True))
00020     
00021     #Add these 3 lines to put back the summary for timing information at the end of the logfile
00022     #(needed for TimeReport report)
00023     process.options = cms.untracked.PSet(
00024         wantSummary = cms.untracked.bool(True)
00025         )
00026 
00027     #Add the configuration for the Igprof running to dump profile snapshots:
00028     process.IgProfService = cms.Service("IgProfService",
00029         reportFirstEvent            = cms.untracked.int32(1),  #Dump first event for baseline studies
00030         reportEventInterval         = cms.untracked.int32(100),#Dump every 100 events (101,201,301,401,501)->Will run 501 events for Step2, HLT and FASTSIM (6 profiles+the end of job one)
00031         reportToFileAtPostEvent     = cms.untracked.string("| gzip -c > IgProf.%I.gz")
00032         )
00033 
00034     process.genParticles.abortOnUnknownPDGCode = cms.untracked.bool(False)
00035     
00036     return(process)