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_condDBv2_cff")
15 process.GlobalTag.globaltag = ""
16 
17 process.load("CondCore.CondDB.CondDB_cfi")
18 process.load("DQMServices.Core.DQM_cfg")
19 process.load("DQMServices.Components.EDMtoMEConverter_cff")
20 
21 process.options = cms.untracked.PSet(
22  fileMode = cms.untracked.string(config.fileMode)
23 )
24 
25 process.source = cms.Source("PoolSource",
26  processingMode = cms.untracked.string("RunsAndLumis"),
27  fileNames = cms.untracked.vstring()
28 )
29 
30 process.maxEvents = cms.untracked.PSet(
31  input = cms.untracked.int32(-1)
32 )
33 
34 process.load('DQM.DTMonitorClient.ALCARECODTCalibSynchDQMClient_cff')
35 
36 workflowName = '/Mu/Calibration-v1/DQM'
37 if config.dqmAtRunEnd:
38  process.DQMStore.referenceFileName = ''
39  process.dqmSaver.convention = 'Offline'
40  process.dqmSaver.workflow = workflowName
41  process.DQMStore.collateHistograms = False
42  process.EDMtoMEConverter.convertOnEndLumi = True
43  process.EDMtoMEConverter.convertOnEndRun = True
44 else:
45  process.DQMStore.referenceFileName = ''
46  process.dqmSaver.convention = 'Offline'
47  process.dqmSaver.workflow = workflowName
48  process.DQMStore.collateHistograms = True
49  process.EDMtoMEConverter.convertOnEndLumi = True
50  process.EDMtoMEConverter.convertOnEndRun = True
51  process.dqmSaver.saveByRun = -1
52  process.dqmSaver.saveAtJobEnd = True
53  process.dqmSaver.forceRunNumber = 1
54 
55 process.dqm_step = cms.Path(process.EDMtoMEConverter*
56  process.ALCARECODTCalibSynchDQMClient*process.dqmSaver)
57 #process.DQM.collectorHost = ''