Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # VarParsing
0004 import FWCore.ParameterSet.VarParsing as VarParsing
0005 options = VarParsing.VarParsing('analysis')
0006 options.register('nThreads', 4, options.multiplicity.singleton, options.varType.int, 'number of threads')
0007 options.register('nStreams', 0, options.multiplicity.singleton, options.varType.int, 'number of streams')
0008 options.setDefault('inputFiles', ['file:testTriggerMonitors_DQMIO.root'])
0009 options.parseArguments()
0010 
0011 # Process
0012 process = cms.Process('HARVESTING')
0013 
0014 process.options.numberOfThreads = options.nThreads
0015 process.options.numberOfStreams = options.nStreams
0016 process.options.numberOfConcurrentLuminosityBlocks = 1
0017 
0018 # Source (DQM input)
0019 process.source = cms.Source('DQMRootSource',
0020   fileNames = cms.untracked.vstring(options.inputFiles)
0021 )
0022 
0023 # DQMStore (Service)
0024 process.load('DQMServices.Core.DQMStore_cfi')
0025 
0026 # MessageLogger (Service)
0027 process.load('FWCore.MessageLogger.MessageLogger_cfi')
0028 
0029 # Harvesting modules
0030 
0031 # FastTimerService client
0032 from HLTrigger.Timer.fastTimerServiceClient_cfi import fastTimerServiceClient as _fastTimerServiceClient
0033 process.fastTimerServiceClient = _fastTimerServiceClient.clone(
0034   dqmPath = 'HLT/TimerService',
0035   # timing VS lumi
0036   doPlotsVsOnlineLumi = True,
0037   doPlotsVsPixelLumi = False,
0038   onlineLumiME = dict(
0039     folder = 'HLT/LumiMonitoring',
0040     name   = 'lumiVsLS',
0041     nbins  = 5000,
0042     xmin   = 0,
0043     xmax   = 20000
0044   )
0045 )
0046 
0047 # ThroughputService client
0048 from HLTrigger.Timer.throughputServiceClient_cfi import throughputServiceClient as _throughputServiceClient
0049 process.throughputServiceClient = _throughputServiceClient.clone(
0050   dqmPath = 'HLT/Throughput'
0051 )
0052 
0053 # PS column VS lumi
0054 from DQM.HLTEvF.dqmCorrelationClient_cfi import dqmCorrelationClient as _dqmCorrelationClient
0055 process.psColumnVsLumi = _dqmCorrelationClient.clone(
0056    me = dict(
0057       folder = 'HLT/PSMonitoring',
0058       name = 'psColumnVSlumi',
0059       doXaxis = True,
0060       nbinsX = 5000,
0061       xminX = 0,
0062       xmaxX = 20000,
0063       doYaxis = False,
0064       nbinsY = 8,
0065       xminY = 0,
0066       xmaxY = 8
0067    ),
0068    me1 = dict(
0069       folder = 'HLT/LumiMonitoring',
0070       name = 'lumiVsLS',
0071       profileX = True
0072    ),
0073    me2 = dict(
0074       folder = 'HLT/PSMonitoring',
0075       name = 'psColumnIndexVsLS',
0076       profileX = True
0077    )
0078 )
0079 
0080 from DQM.HLTEvF.triggerRatesMonitorClient_cfi import triggerRatesMonitorClient as _triggerRatesMonitorClient
0081 process.triggerRatesMonitorClient = _triggerRatesMonitorClient.clone(
0082   dqmPath = 'HLT/TriggerRates'
0083 )
0084 
0085 # Output module (file in ROOT format)
0086 from DQMServices.Components.DQMFileSaver_cfi import dqmSaver as _dqmSaver
0087 process.dqmSaver = _dqmSaver.clone(
0088   workflow = '/HLTEvF/TestTriggerMonitors/'+process.name_()
0089 )
0090 
0091 # EndPath
0092 process.endp = cms.EndPath(
0093     process.fastTimerServiceClient
0094   + process.throughputServiceClient
0095   + process.psColumnVsLumi
0096   + process.triggerRatesMonitorClient
0097   + process.dqmSaver
0098 )