CMS 3D CMS Logo

dtDQMClientAlca_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from Configuration.StandardSequences.Eras import eras
3 
4 class config: pass
5 config.dqmAtRunEnd = True
6 if config.dqmAtRunEnd: config.fileMode = 'FULLMERGE'
7 else: config.fileMode = 'NOMERGE'
8 
9 process = cms.Process("HARVESTING",eras.Run3)
10 
11 process.load("FWCore.MessageLogger.MessageLogger_cfi")
12 
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']
18 
19 process.load("CondCore.CondDB.CondDB_cfi")
20 process.load("DQMServices.Core.DQM_cfg")
21 process.load("DQMServices.Components.EDMtoMEConverter_cff")
22 
23 process.options = cms.untracked.PSet(
24  fileMode = cms.untracked.string(config.fileMode)
25 )
26 
27 process.source = cms.Source("PoolSource",
28  processingMode = cms.untracked.string("RunsAndLumis"),
29  fileNames = cms.untracked.vstring()
30 )
31 
32 process.maxEvents = cms.untracked.PSet(
33  input = cms.untracked.int32(-1)
34 )
35 
36 process.load('DQM.DTMonitorClient.ALCARECODTCalibSynchDQMClient_cff')
37 
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
44 else:
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
52 
53 process.dqm_step = cms.Path(process.EDMtoMEConverter*
54  process.ALCARECODTCalibSynchDQMClient*process.dqmSaver)
55 #process.DQM.collectorHost = ''