Skip to content

Commit

Permalink
add simple harvesting config for FastTime service
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Feb 5, 2020
1 parent d1fffb7 commit 5001e26
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions HLTrigger/Timer/test/FastTimerHarvest.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5001e26

Please sign in to comment.