From 5001e26df336f3ff608a308539dca44584546fcb Mon Sep 17 00:00:00 2001 From: Kevin Pedro Date: Wed, 5 Feb 2020 13:27:43 -0600 Subject: [PATCH] add simple harvesting config for FastTime service --- HLTrigger/Timer/test/FastTimerHarvest.py | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 HLTrigger/Timer/test/FastTimerHarvest.py diff --git a/HLTrigger/Timer/test/FastTimerHarvest.py b/HLTrigger/Timer/test/FastTimerHarvest.py new file mode 100644 index 0000000000000..6f947ee22b801 --- /dev/null +++ b/HLTrigger/Timer/test/FastTimerHarvest.py @@ -0,0 +1,36 @@ +import FWCore.ParameterSet.Config as cms +from FWCore.ParameterSet.VarParsing import VarParsing + +options = VarParsing() +options.register("multirun", False, VarParsing.multiplicity.singleton, VarParsing.varType.bool) +options.parseArguments() + +process = cms.Process('HARVESTING') + +# read all the DQMIO files produced by the previous jobs +process.source = cms.Source("DQMRootSource", + fileNames = cms.untracked.vstring( + "file:DQM.root", + ) +) + +# DQMStore service +process.load('DQMServices.Core.DQMStore_cfi') + +# FastTimerService client +process.load('HLTrigger.Timer.fastTimerServiceClient_cfi') +process.fastTimerServiceClient.dqmPath = "HLT/TimerService" + +# DQM file saver +process.load('DQMServices.Components.DQMFileSaver_cfi') +process.dqmSaver.workflow = "/HLT/FastTimerService/All" + +process.DQMFileSaverOutput = cms.EndPath( process.fastTimerServiceClient + process.dqmSaver ) + +if options.multirun: + # multirun harvesting + process.DQMStore.collateHistograms = True + process.dqmSaver.saveByRun = -1 + process.dqmSaver.saveAtJobEnd = True + process.dqmSaver.forceRunNumber = 999999 +