Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 class config: pass
0004 config.dqmAtRunEnd = False
0005 if config.dqmAtRunEnd: config.fileMode = 'FULLMERGE'
0006 else: config.fileMode = 'NOMERGE'
0007 
0008 process = cms.Process("DQMClient")
0009 
0010 process.load("FWCore.MessageService.MessageLogger_cfi")
0011 process.MessageLogger.debugModules = cms.untracked.vstring('')
0012 process.MessageLogger.DTDQM=dict()
0013 process.MessageLogger.resolution=dict()
0014 process.MessageLogger.cerr =  cms.untracked.PSet(
0015     threshold = cms.untracked.string('WARNING'),
0016     noLineBreaks = cms.untracked.bool(False),
0017     DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0018     INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0019     DTDQM = cms.untracked.PSet(limit = cms.untracked.int32(-1)), 
0020     resolution = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0021 )
0022 
0023 process.load("DQMServices.Components.EDMtoMEConverter_cff")
0024 
0025 process.options = cms.untracked.PSet(
0026     fileMode = cms.untracked.string(config.fileMode)
0027 )
0028 
0029 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0030 process.GlobalTag.globaltag = ''
0031 
0032 process.load("Configuration.StandardSequences.GeometryDB_cff")
0033 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
0034 process.load("Geometry.DTGeometry.dtGeometry_cfi")
0035 process.DTGeometryESModule.applyAlignment = False
0036 process.DTGeometryESModule.fromDDD = False
0037 
0038 process.load("CondCore.CondDB.CondDB_cfi")
0039 process.load("DQMServices.Core.DQM_cfg")
0040 
0041 process.source = cms.Source("PoolSource",
0042     processingMode = cms.untracked.string("RunsAndLumis"),
0043     fileNames = cms.untracked.vstring()
0044 )
0045 
0046 process.maxEvents = cms.untracked.PSet(
0047     input = cms.untracked.int32(-1)
0048 )
0049 
0050 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
0051     eventInfoFolder = cms.untracked.string('EventInfo/')
0052 )
0053 
0054 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0055 process.qTester = DQMQualityTester(
0056     prescaleFactor = cms.untracked.int32(1),
0057     qtList = cms.untracked.FileInPath('CalibMuon/DTCalibration/data/QualityTests_ttrig.xml')
0058 )
0059 
0060 #process.load("DQM.DTMonitorClient.dtResolutionTestFinalCalib_cfi")
0061 process.load("DQM.DTMonitorClient.dtResolutionTest_cfi")
0062 process.resolutionTest.calibModule = True
0063 process.resolutionTest.histoTag2D = 'hResDistVsDist_STEP3'
0064 process.resolutionTest.histoTag  = 'hResDist_STEP3'
0065 process.resolutionTest.STEP = 'STEP3'
0066 process.resolutionTest.meanMaxLimit = 0.02
0067 process.resolutionTest.sigmaTest = True
0068 process.resolutionTest.slopeTest = False
0069 process.resolutionTest.meanWrongHisto = cms.untracked.bool(False)
0070 process.resolutionTest.sigmaWrongHisto = cms.untracked.bool(False)
0071 process.resolutionTest.readFile = cms.untracked.bool(False) 
0072 process.resolutionTest.OutputMEsInRootFile = cms.bool(False)
0073 #process.resolutionTest.inputFile = cms.untracked.string('')
0074 #process.resolutionTest.OutputFileName = cms.string('')
0075 
0076 workflowName = '/Mu/Calibration-v1/DQM'
0077 if config.dqmAtRunEnd:
0078     process.dqmSaver.convention = 'Offline'
0079     process.dqmSaver.workflow = workflowName
0080     process.EDMtoMEConverter.convertOnEndLumi = True
0081     process.EDMtoMEConverter.convertOnEndRun = True
0082 else:
0083     process.dqmSaver.convention = 'Offline'
0084     process.dqmSaver.workflow = workflowName
0085     process.EDMtoMEConverter.convertOnEndLumi = True
0086     process.EDMtoMEConverter.convertOnEndRun = True
0087     process.dqmSaver.saveByRun = -1
0088     process.dqmSaver.saveAtJobEnd = True  
0089     process.dqmSaver.forceRunNumber = 1
0090 
0091 #process.dqm_step = cms.Path(process.EDMtoMEConverter*
0092 #                            process.qTester*process.resolutionTest*process.dqmSaver)
0093 process.dqm_step = cms.Path(process.EDMtoMEConverter*
0094                             process.dqmSaver)
0095 
0096 #process.DQM.collectorHost = ''