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.MagneticField_AutoFromDBCurrent_cff")
14 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
15 process.GlobalTag.globaltag =
"" 17 process.load(
"CondCore.CondDB.CondDB_cfi")
18 process.load(
"DQMServices.Core.DQM_cfg")
19 process.load(
"DQMServices.Components.EDMtoMEConverter_cff")
21 process.options = cms.untracked.PSet(
22 fileMode = cms.untracked.string(config.fileMode)
25 process.source = cms.Source(
"PoolSource",
26 processingMode = cms.untracked.string(
"RunsAndLumis"),
27 fileNames = cms.untracked.vstring()
30 process.maxEvents = cms.untracked.PSet(
31 input = cms.untracked.int32(-1)
34 process.load(
'DQM.DTMonitorClient.ALCARECODTCalibSynchDQMClient_cff')
36 workflowName =
'/Mu/Calibration-v1/DQM' 37 if config.dqmAtRunEnd:
38 process.dqmSaver.convention =
'Offline' 39 process.dqmSaver.workflow = workflowName
40 process.EDMtoMEConverter.convertOnEndLumi =
True 41 process.EDMtoMEConverter.convertOnEndRun =
True 43 process.dqmSaver.convention =
'Offline' 44 process.dqmSaver.workflow = workflowName
45 process.EDMtoMEConverter.convertOnEndLumi =
True 46 process.EDMtoMEConverter.convertOnEndRun =
True 47 process.dqmSaver.saveByRun = -1
48 process.dqmSaver.saveAtJobEnd =
True 49 process.dqmSaver.forceRunNumber = 1
51 process.dqm_step = cms.Path(process.EDMtoMEConverter*
52 process.ALCARECODTCalibSynchDQMClient*process.dqmSaver)