CMS 3D CMS Logo

dtDQMClientAlca_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 class config: pass
4 config.dqmAtRunEnd = True
5 if config.dqmAtRunEnd: config.fileMode = 'FULLMERGE'
6 else: config.fileMode = 'NOMERGE'
7 
8 process = cms.Process("HARVESTING")
9 
10 process.load("FWCore.MessageLogger.MessageLogger_cfi")
11 
12 process.load("Configuration.StandardSequences.GeometryDB_cff")
13 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
14 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
15 from Configuration.AlCa.autoCond import autoCond
16 process.GlobalTag.globaltag=autoCond['run3_data']
17 
18 process.load("CondCore.CondDB.CondDB_cfi")
19 process.load("DQMServices.Core.DQM_cfg")
20 process.load("DQMServices.Components.EDMtoMEConverter_cff")
21 
22 process.options = cms.untracked.PSet(
23  fileMode = cms.untracked.string(config.fileMode)
24 )
25 
26 process.source = cms.Source("PoolSource",
27  processingMode = cms.untracked.string("RunsAndLumis"),
28  fileNames = cms.untracked.vstring()
29 )
30 
31 process.maxEvents = cms.untracked.PSet(
32  input = cms.untracked.int32(-1)
33 )
34 
35 process.load('DQM.DTMonitorClient.ALCARECODTCalibSynchDQMClient_cff')
36 
37 workflowName = '/Mu/Calibration-v1/DQM'
38 if config.dqmAtRunEnd:
39  process.dqmSaver.convention = 'Offline'
40  process.dqmSaver.workflow = workflowName
41  process.EDMtoMEConverter.convertOnEndLumi = True
42  process.EDMtoMEConverter.convertOnEndRun = True
43 else:
44  process.dqmSaver.convention = 'Offline'
45  process.dqmSaver.workflow = workflowName
46  process.EDMtoMEConverter.convertOnEndLumi = True
47  process.EDMtoMEConverter.convertOnEndRun = True
48  process.dqmSaver.saveByRun = -1
49  process.dqmSaver.saveAtJobEnd = True
50  process.dqmSaver.forceRunNumber = 1
51 
52 process.dqm_step = cms.Path(process.EDMtoMEConverter*
53  process.ALCARECODTCalibSynchDQMClient*process.dqmSaver)
54 #process.DQM.collectorHost = ''