1 import FWCore.ParameterSet.Config
as cms
4 config.dqmAtRunEnd =
True
5 if config.dqmAtRunEnd: config.fileMode =
'FULLMERGE'
6 else: config.fileMode =
'NOMERGE'
8 process = cms.Process(
"HARVESTING")
10 process.load(
"FWCore.MessageLogger.MessageLogger_cfi")
12 process.load(
"Configuration.StandardSequences.GeometryDB_cff")
13 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff")
14 process.GlobalTag.globaltag =
""
16 process.load(
"CondCore.DBCommon.CondDBSetup_cfi")
17 process.load(
"DQMServices.Core.DQM_cfg")
18 process.load(
"DQMServices.Components.EDMtoMEConverter_cff")
20 process.options = cms.untracked.PSet(
21 fileMode = cms.untracked.string(config.fileMode)
24 process.source = cms.Source(
"PoolSource",
25 processingMode = cms.untracked.string(
"RunsAndLumis"),
26 fileNames = cms.untracked.vstring()
29 process.maxEvents = cms.untracked.PSet(
30 input = cms.untracked.int32(-1)
33 process.load(
'DQM.DTMonitorClient.ALCARECODTCalibSynchDQMClient_cff')
35 workflowName =
'/Mu/Calibration-v1/DQM'
36 if config.dqmAtRunEnd:
37 process.DQMStore.referenceFileName =
''
38 process.dqmSaver.convention =
'Offline'
39 process.dqmSaver.workflow = workflowName
40 process.DQMStore.collateHistograms =
False
41 process.EDMtoMEConverter.convertOnEndLumi =
True
42 process.EDMtoMEConverter.convertOnEndRun =
True
44 process.DQMStore.referenceFileName =
''
45 process.dqmSaver.convention =
'Offline'
46 process.dqmSaver.workflow = workflowName
47 process.DQMStore.collateHistograms =
True
48 process.EDMtoMEConverter.convertOnEndLumi =
True
49 process.EDMtoMEConverter.convertOnEndRun =
True
50 process.dqmSaver.saveByRun = -1
51 process.dqmSaver.saveAtJobEnd =
True
52 process.dqmSaver.forceRunNumber = 1
54 process.dqm_step = cms.Path(process.EDMtoMEConverter*
55 process.ALCARECODTCalibSynchDQMClient*process.dqmSaver)