Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:32

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CALIB")
0004 
0005 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0006 process.load("Geometry.DTGeometry.dtGeometry_cfi")
0007 process.DTGeometryESModule.applyAlignment = False
0008 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0009 
0010 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0011 process.load("DQMServices.Core.DQM_cfg")
0012 
0013 process.source = cms.Source("EmptySource",
0014     numberEventsInRun = cms.untracked.uint32(1),
0015     firstRun = cms.untracked.uint32(112281)
0016 )
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019     input = cms.untracked.int32(1)
0020 )
0021 
0022 process.ttrigRef = cms.ESSource("PoolDBESSource",
0023     DBParameters = cms.PSet(
0024         messageLevel = cms.untracked.int32(0),
0025         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0026     ),
0027     timetype = cms.string('runnumber'),
0028     toGet = cms.VPSet(
0029         cms.PSet(
0030             record = cms.string('DTTtrigRcd'),
0031             tag = cms.string('ttrig'),
0032             connect = cms.untracked.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_MUONCALIB/DTCALIB/COMM09/ttrig/Run112237/Ttrig/Results/ttrig_ResidCorr_112237.db'), 
0033             label = cms.untracked.string('ttrigRef')
0034         ), 
0035         cms.PSet(
0036             record = cms.string('DTTtrigRcd'),
0037             tag = cms.string('ttrig'),
0038             connect = cms.untracked.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_MUONCALIB/DTCALIB/COMM09/ttrig/Run112281/Ttrig/Results/ttrig_ResidCorr_112281.db'),
0039             label = cms.untracked.string('ttrigToValidate')
0040         )),
0041     #connect = cms.string('CMSCONDVSTEMPLATE'),
0042     connect = cms.string(''),
0043     siteLocalConfig = cms.untracked.bool(False)
0044 )
0045 
0046 process.MessageLogger = cms.Service("MessageLogger",
0047     debugModules = cms.untracked.vstring('dtTTrigAnalyzer'),
0048     cout = cms.untracked.PSet(
0049         default = cms.untracked.PSet(
0050             limit = cms.untracked.int32(0)
0051         ),
0052         tTrigdbValidation = cms.untracked.PSet(
0053             limit = cms.untracked.int32(-1)
0054         ),
0055         noLineBreaks = cms.untracked.bool(True),
0056         threshold = cms.untracked.string('DEBUG'),
0057         DEBUG = cms.untracked.PSet(
0058             limit = cms.untracked.int32(0)
0059         )
0060     ),
0061     categories = cms.untracked.vstring('tTrigdbValidation'),
0062     destinations = cms.untracked.vstring('cout')
0063 )
0064 
0065 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0066 process.dtTTrigAnalyzer = DQMEDAnalyzer('DTtTrigDBValidation',
0067     labelDBRef = cms.string('ttrigRef'),
0068     labelDB = cms.string('ttrigToValidate'),
0069     tTrigTestName = cms.string('tTrigDifferenceInRange')
0070     #OutputMEsInRootFile = cms.untracked.bool(False),
0071     #OutputFileName = cms.untracked.string('tTrigDBMonitoring_112281_vs_112237.root')
0072 )
0073 
0074 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0075 process.qTester = DQMQualityTester(
0076     prescaleFactor = cms.untracked.int32(1),
0077     qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
0078 )
0079 
0080 process.load("DQMServices.Components.DQMEnvironment_cfi")
0081 process.dqmSaver.convention = 'Offline'
0082 process.dqmSaver.workflow = '/Muon/DT/DTDBValidation'
0083 
0084 process.p = cms.Path(process.dtTTrigAnalyzer*process.qTester*process.dqmSaver)
0085 process.DQM.collectorHost = ''