Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:20:46

0001 import FWCore.ParameterSet.Config as cms
0002 from FWCore.ParameterSet.VarParsing import VarParsing
0003 
0004 options = VarParsing()
0005 options.register("multirun", False, VarParsing.multiplicity.singleton, VarParsing.varType.bool)
0006 options.parseArguments()
0007 
0008 process = cms.Process('HARVESTING')
0009 
0010 # read all the DQMIO files produced by the previous jobs
0011 process.source = cms.Source("DQMRootSource",
0012     fileNames = cms.untracked.vstring(
0013         "file:DQM.root",
0014     )
0015 )
0016 
0017 # DQMStore service
0018 process.load('DQMServices.Core.DQMStore_cfi')
0019 
0020 # FastTimerService client
0021 process.load('HLTrigger.Timer.fastTimerServiceClient_cfi')
0022 process.fastTimerServiceClient.dqmPath = "HLT/TimerService"
0023 
0024 # DQM file saver
0025 process.load('DQMServices.Components.DQMFileSaver_cfi')
0026 process.dqmSaver.workflow = "/HLT/FastTimerService/All"
0027 
0028 process.DQMFileSaverOutput = cms.EndPath( process.fastTimerServiceClient + process.dqmSaver )
0029 
0030 if options.multirun:
0031     # multirun harvesting
0032     process.dqmSaver.saveByRun      = -1
0033     process.dqmSaver.saveAtJobEnd   = True
0034     process.dqmSaver.forceRunNumber = 999999
0035