CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/CalibMuon/DTCalibration/python/dtDQMClient_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 class config: pass
00004 config.dqmAtRunEnd = False
00005 if config.dqmAtRunEnd: config.fileMode = 'FULLMERGE'
00006 else: config.fileMode = 'NOMERGE'
00007 
00008 process = cms.Process("DQMClient")
00009 
00010 process.load("FWCore.MessageService.MessageLogger_cfi")
00011 process.MessageLogger.debugModules = cms.untracked.vstring('')
00012 process.MessageLogger.destinations = cms.untracked.vstring('cerr')
00013 process.MessageLogger.categories.append('DTDQM')
00014 process.MessageLogger.categories.append('resolution')
00015 process.MessageLogger.cerr =  cms.untracked.PSet(
00016     threshold = cms.untracked.string('WARNING'),
00017     noLineBreaks = cms.untracked.bool(False),
00018     DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
00019     INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)),
00020     DTDQM = cms.untracked.PSet(limit = cms.untracked.int32(-1)), 
00021     resolution = cms.untracked.PSet(limit = cms.untracked.int32(-1))
00022 )
00023 
00024 process.load("DQMServices.Components.EDMtoMEConverter_cff")
00025 
00026 process.options = cms.untracked.PSet(
00027     fileMode = cms.untracked.string(config.fileMode)
00028 )
00029 
00030 process.load("Configuration.StandardSequences.Geometry_cff")
00031 process.load("Geometry.DTGeometry.dtGeometry_cfi")
00032 process.DTGeometryESModule.applyAlignment = False
00033 
00034 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00035 process.load("DQMServices.Core.DQM_cfg")
00036 
00037 process.source = cms.Source("PoolSource",
00038     processingMode = cms.untracked.string("RunsAndLumis"),
00039     fileNames = cms.untracked.vstring()
00040 )
00041 
00042 process.maxEvents = cms.untracked.PSet(
00043     input = cms.untracked.int32(-1)
00044 )
00045 
00046 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
00047     eventInfoFolder = cms.untracked.string('EventInfo/')
00048 )
00049 
00050 process.qTester = cms.EDAnalyzer("QualityTester",
00051     prescaleFactor = cms.untracked.int32(1),
00052     qtList = cms.untracked.FileInPath('CalibMuon/DTCalibration/data/QualityTests_ttrig.xml')
00053 )
00054 
00055 #process.load("DQM.DTMonitorClient.dtResolutionTestFinalCalib_cfi")
00056 process.load("DQM.DTMonitorClient.dtResolutionTest_cfi")
00057 process.resolutionTest.calibModule = True
00058 process.resolutionTest.histoTag2D = 'hResDistVsDist_STEP3'
00059 process.resolutionTest.histoTag  = 'hResDist_STEP3'
00060 process.resolutionTest.STEP = 'STEP3'
00061 process.resolutionTest.meanMaxLimit = 0.02
00062 process.resolutionTest.sigmaTest = True
00063 process.resolutionTest.slopeTest = False
00064 process.resolutionTest.meanWrongHisto = cms.untracked.bool(False)
00065 process.resolutionTest.sigmaWrongHisto = cms.untracked.bool(False)
00066 process.resolutionTest.readFile = cms.untracked.bool(False) 
00067 process.resolutionTest.OutputMEsInRootFile = cms.bool(False)
00068 #process.resolutionTest.inputFile = cms.untracked.string('')
00069 #process.resolutionTest.OutputFileName = cms.string('')
00070 
00071 workflowName = '/Mu/Calibration-v1/DQM'
00072 if config.dqmAtRunEnd:
00073     process.DQMStore.referenceFileName = ''
00074     process.dqmSaver.convention = 'Offline'
00075     process.dqmSaver.workflow = workflowName
00076     process.DQMStore.collateHistograms = False
00077     process.EDMtoMEConverter.convertOnEndLumi = True
00078     process.EDMtoMEConverter.convertOnEndRun = True
00079 else:
00080     process.DQMStore.referenceFileName = ''
00081     process.dqmSaver.convention = 'Offline'
00082     process.dqmSaver.workflow = workflowName
00083     process.DQMStore.collateHistograms = True
00084     process.EDMtoMEConverter.convertOnEndLumi = True
00085     process.EDMtoMEConverter.convertOnEndRun = True
00086     process.dqmSaver.saveByRun = -1
00087     process.dqmSaver.saveAtJobEnd = True  
00088     process.dqmSaver.forceRunNumber = 1
00089 
00090 #process.dqm_step = cms.Path(process.EDMtoMEConverter*
00091 #                            process.qTester*process.resolutionTest*process.dqmSaver)
00092 process.dqm_step = cms.Path(process.EDMtoMEConverter*
00093                             process.dqmSaver)
00094 
00095 process.DQM.collectorHost = ''