CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/CalibMuon/DTCalibration/python/dtDQMClientAlca_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 class config: pass
00004 config.dqmAtRunEnd = True
00005 if config.dqmAtRunEnd: config.fileMode = 'FULLMERGE'
00006 else: config.fileMode = 'NOMERGE'
00007 
00008 process = cms.Process("HARVESTING")
00009 
00010 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00011 
00012 process.load("Configuration.StandardSequences.Geometry_cff")
00013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00014 process.GlobalTag.globaltag = ""
00015 
00016 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00017 process.load("DQMServices.Core.DQM_cfg")
00018 process.load("DQMServices.Components.EDMtoMEConverter_cff")
00019 
00020 process.options = cms.untracked.PSet(
00021     fileMode = cms.untracked.string(config.fileMode)
00022 )
00023 
00024 process.source = cms.Source("PoolSource",
00025     processingMode = cms.untracked.string("RunsAndLumis"),
00026     fileNames = cms.untracked.vstring()
00027 )
00028 
00029 process.maxEvents = cms.untracked.PSet(
00030     input = cms.untracked.int32(-1)
00031 )
00032 
00033 process.load('DQM.DTMonitorClient.ALCARECODTCalibSynchDQMClient_cff')
00034 
00035 workflowName = '/Mu/Calibration-v1/DQM'
00036 if config.dqmAtRunEnd:
00037     process.DQMStore.referenceFileName = ''
00038     process.dqmSaver.convention = 'Offline'
00039     process.dqmSaver.workflow = workflowName
00040     process.DQMStore.collateHistograms = False
00041     process.EDMtoMEConverter.convertOnEndLumi = True
00042     process.EDMtoMEConverter.convertOnEndRun = True
00043 else:
00044     process.DQMStore.referenceFileName = ''
00045     process.dqmSaver.convention = 'Offline'
00046     process.dqmSaver.workflow = workflowName
00047     process.DQMStore.collateHistograms = True
00048     process.EDMtoMEConverter.convertOnEndLumi = True
00049     process.EDMtoMEConverter.convertOnEndRun = True
00050     process.dqmSaver.saveByRun = -1
00051     process.dqmSaver.saveAtJobEnd = True  
00052     process.dqmSaver.forceRunNumber = 1
00053 
00054 process.dqm_step = cms.Path(process.EDMtoMEConverter*
00055                             process.ALCARECODTCalibSynchDQMClient*process.dqmSaver)
00056 process.DQM.collectorHost = ''