Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the configuration of the FastTimerService used for Offline DQM: same as #4307 #4308

Merged
merged 2 commits into from Jun 20, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions DQMOffline/Configuration/python/DQMOffline_cff.py
Expand Up @@ -3,6 +3,7 @@
from DQMServices.Components.DQMMessageLogger_cfi import *
from DQMServices.Components.DQMDcsInfo_cfi import *
from DQMServices.Components.DQMFastTimerService_cff import *
from DQMServices.Components.DQMFastTimerServiceLuminosity_cfi import *

from DQMOffline.Ecal.ecal_dqm_source_offline_cff import *
from DQM.HcalMonitorModule.hcal_dqm_source_fileT0_cff import *
Expand Down Expand Up @@ -61,6 +62,7 @@

DQMOffline = cms.Sequence( DQMOfflinePreDPG *
DQMOfflinePrePOG *
dqmFastTimerServiceLuminosity *
DQMMessageLogger )

DQMOfflinePrePOGMC = cms.Sequence( pvMonitor *
Expand Down
@@ -1,5 +1,6 @@
import FWCore.ParameterSet.Config as cms

dqmFastTimerServiceClient = cms.EDAnalyzer('FastTimerServiceClient',
dqmPath = cms.untracked.string( "DQM/TimerService" )
)
# FastTimerService client
import HLTrigger.Timer.fastTimerServiceClient_cfi as __fastTimerServiceClient_cfi
dqmFastTimerServiceClient = __fastTimerServiceClient_cfi.fastTimerServiceClient.clone()
dqmFastTimerServiceClient.dqmPath = cms.untracked.string( "DQM/TimerService" )
10 changes: 10 additions & 0 deletions DQMServices/Components/python/DQMFastTimerServiceLuminosity_cfi.py
@@ -0,0 +1,10 @@
import FWCore.ParameterSet.Config as cms

# set the luminosity for the FastTimerService from SCAL
import HLTrigger.Timer.ftsLuminosityFromScalers_cfi as __ftsLuminosityFromScalers_cfi
dqmFastTimerServiceLuminosity = __ftsLuminosityFromScalers_cfi.ftsLuminosityFromScalers.clone()
dqmFastTimerServiceLuminosity.name = 'luminosity'
dqmFastTimerServiceLuminosity.title = 'instantaneous luminosity (from SCAL)'
dqmFastTimerServiceLuminosity.source = 'scalersRawToDigi'
dqmFastTimerServiceLuminosity.range = 1.e34
dqmFastTimerServiceLuminosity.resolution = 1.e31
83 changes: 50 additions & 33 deletions DQMServices/Components/python/DQMFastTimerService_cff.py
@@ -1,35 +1,52 @@
import FWCore.ParameterSet.Config as cms

# instrument the menu with the modules and EndPath needed for timing studies
FastTimerService = cms.Service('FastTimerService',
useRealTimeClock = cms.untracked.bool( False ),
enableTimingPaths = cms.untracked.bool( True ),
enableTimingModules = cms.untracked.bool( False ),
enableTimingExclusive = cms.untracked.bool( False ),
enableTimingSummary = cms.untracked.bool( True ),
skipFirstPath = cms.untracked.bool( False ),
enableDQM = cms.untracked.bool( True ),
enableDQMbyPathActive = cms.untracked.bool( True ),
enableDQMbyPathTotal = cms.untracked.bool( True ),
enableDQMbyPathOverhead = cms.untracked.bool( False ),
enableDQMbyPathDetails = cms.untracked.bool( True ),
enableDQMbyPathCounters = cms.untracked.bool( True ),
enableDQMbyPathExclusive = cms.untracked.bool( False ),
enableDQMbyModule = cms.untracked.bool( False ),
enableDQMSummary = cms.untracked.bool( True ),
enableDQMbyLuminosity = cms.untracked.bool( True ),
enableDQMbyLumiSection = cms.untracked.bool( True ),
enableDQMbyProcesses = cms.untracked.bool( False ),
dqmTimeRange = cms.untracked.double( 10000 ),
dqmTimeResolution = cms.untracked.double( 10 ),
dqmPathTimeRange = cms.untracked.double( 10000 ),
dqmPathTimeResolution = cms.untracked.double( 10 ),
dqmModuleTimeRange = cms.untracked.double( 40. ),
dqmModuleTimeResolution = cms.untracked.double( 0.2 ),
dqmLuminosityRange = cms.untracked.double( 1e+34 ),
dqmLuminosityResolution = cms.untracked.double( 1e+31 ),
dqmLumiSectionsRange = cms.untracked.uint32( 2500 ),
dqmPath = cms.untracked.string( "DQM/TimerService" ),
luminosityProduct = cms.untracked.InputTag( "scalersRawToDigi" ),
supportedProcesses = cms.untracked.vuint32( )
)
# instrument the process with the FastTimerService
from HLTrigger.Timer.FastTimerService_cfi import FastTimerService

# this is currently ignored in 7.x, and always uses the real time clock
FastTimerService.useRealTimeClock = False

# enable specific features
FastTimerService.enableTimingPaths = True
FastTimerService.enableTimingModules = False
FastTimerService.enableTimingExclusive = False

# print a text summary at the end of the job
FastTimerService.enableTimingSummary = True

# skip the first path (useful for HLT timing studies to disregard the time spent loading event and conditions data)
FastTimerService.skipFirstPath = False

# enable per-event DQM plots
FastTimerService.enableDQM = True

# enable per-path DQM plots
FastTimerService.enableDQMbyPathActive = True
FastTimerService.enableDQMbyPathTotal = True
FastTimerService.enableDQMbyPathOverhead = False
FastTimerService.enableDQMbyPathDetails = True
FastTimerService.enableDQMbyPathCounters = True
FastTimerService.enableDQMbyPathExclusive = False

# enable per-module DQM plots
FastTimerService.enableDQMbyModule = False
FastTimerService.enableDQMbyModuleType = False

# enable per-event DQM sumary plots
FastTimerService.enableDQMSummary = True

# enable per-event DQM plots by lumisection
FastTimerService.enableDQMbyLumiSection = True
FastTimerService.dqmLumiSectionsRange = 2500 # lumisections (23.31 s)

# set the time resolution of the DQM plots
FastTimerService.dqmTimeRange = 10000. # ms
FastTimerService.dqmTimeResolution = 10. # ms
FastTimerService.dqmPathTimeRange = 10000. # ms
FastTimerService.dqmPathTimeResolution = 10. # ms
FastTimerService.dqmModuleTimeRange = 100. # ms
FastTimerService.dqmModuleTimeResolution = 0.5 # ms

# set the base DQM folder for the plots
FastTimerService.dqmPath = "DQM/TimerService"
FastTimerService.enableDQMbyProcesses = False