CMS 3D CMS Logo

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