1 import FWCore.ParameterSet.Config
as cms
2 from Configuration.StandardSequences.Eras
import eras
5 config.dqmAtRunEnd =
True 6 if config.dqmAtRunEnd: config.fileMode =
'FULLMERGE' 7 else: config.fileMode =
'NOMERGE' 9 process = cms.Process(
"HARVESTING",eras.Run3)
11 process.load(
"FWCore.MessageLogger.MessageLogger_cfi")
13 process.load(
"Configuration.StandardSequences.GeometryDB_cff")
14 process.load(
"Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
15 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
16 from Configuration.AlCa.autoCond
import autoCond
17 process.GlobalTag.globaltag=autoCond[
'run3_data']
19 process.load(
"CondCore.CondDB.CondDB_cfi")
20 process.load(
"DQMServices.Core.DQM_cfg")
21 process.load(
"DQMServices.Components.EDMtoMEConverter_cff")
23 process.options = cms.untracked.PSet(
24 fileMode = cms.untracked.string(config.fileMode)
27 process.source = cms.Source(
"PoolSource",
28 processingMode = cms.untracked.string(
"RunsAndLumis"),
29 fileNames = cms.untracked.vstring()
32 process.maxEvents = cms.untracked.PSet(
33 input = cms.untracked.int32(-1)
36 process.load(
'DQM.DTMonitorClient.ALCARECODTCalibSynchDQMClient_cff')
38 workflowName =
'/Mu/Calibration-v1/DQM' 39 if config.dqmAtRunEnd:
40 process.dqmSaver.convention =
'Offline' 41 process.dqmSaver.workflow = workflowName
42 process.EDMtoMEConverter.convertOnEndLumi =
True 43 process.EDMtoMEConverter.convertOnEndRun =
True 45 process.dqmSaver.convention =
'Offline' 46 process.dqmSaver.workflow = workflowName
47 process.EDMtoMEConverter.convertOnEndLumi =
True 48 process.EDMtoMEConverter.convertOnEndRun =
True 49 process.dqmSaver.saveByRun = -1
50 process.dqmSaver.saveAtJobEnd =
True 51 process.dqmSaver.forceRunNumber = 1
53 process.dqm_step = cms.Path(process.EDMtoMEConverter*
54 process.ALCARECODTCalibSynchDQMClient*process.dqmSaver)