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(121475)
0016     firstRun = cms.untracked.uint32(1)
0017 )
0018 
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(1)
0021 )
0022 
0023 process.ttrigRef = cms.ESSource("PoolDBESSource",
0024     DBParameters = cms.PSet(
0025         messageLevel = cms.untracked.int32(0),
0026         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0027     ),
0028     timetype = cms.string('runnumber'),
0029     toGet = cms.VPSet(
0030         cms.PSet(
0031             record = cms.string('DTTtrigRcd'),
0032             tag = cms.string('ttrig'),
0033             #connect = cms.untracked.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_MUONCALIB/DTCALIB/COMM09/ttrig/ttrig_ResidCorr_110958.db'), 
0034             label = cms.untracked.string('ttrigRef')
0035         )
0036 #         , 
0037 #         cms.PSet(
0038 #             record = cms.string('DTTtrigRcd'),
0039 #             tag = cms.string('ttrig'),
0040 #             connect = cms.untracked.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_MUONCALIB/DTCALIB/LHC/ttrig/ttrig_ResidCorr_121475.db'),
0041 #             label = cms.untracked.string('ttrigToValidate')
0042 #         )
0043         ),
0044     connect = cms.string('sqlite_file:REFTTRIGTEMPLATE'),
0045     siteLocalConfig = cms.untracked.bool(False)
0046 )
0047 
0048 
0049 process.ttrigToValidate = cms.ESSource("PoolDBESSource",
0050     DBParameters = cms.PSet(
0051         messageLevel = cms.untracked.int32(0),
0052         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0053     ),
0054     timetype = cms.string('runnumber'),
0055     toGet = cms.VPSet(
0056 #         cms.PSet(
0057 #             record = cms.string('DTTtrigRcd'),
0058 #             tag = cms.string('ttrig'),
0059 #             #connect = cms.untracked.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_MUONCALIB/DTCALIB/COMM09/ttrig/ttrig_ResidCorr_110958.db'), 
0060 #             label = cms.untracked.string('ttrigRef')
0061 #         )
0062          cms.PSet(
0063     record = cms.string('DTTtrigRcd'),
0064     tag = cms.string('ttrig'),
0065 #     connect = cms.untracked.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_MUONCALIB/DTCALIB/LHC/ttrig/ttrig_ResidCorr_121475.db'),
0066     label = cms.untracked.string('ttrigToValidate')
0067     )
0068         ),
0069     connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_MUONCALIB/DTCALIB/RUNPERIODTEMPLATE/ttrig/ttrig_ResidCorr_RUNNUMBERTEMPLATE.db'),
0070     siteLocalConfig = cms.untracked.bool(False)
0071 )
0072 
0073 
0074 process.MessageLogger = cms.Service("MessageLogger",
0075     debugModules = cms.untracked.vstring('dtTTrigAnalyzer'),
0076     cout = cms.untracked.PSet(
0077         default = cms.untracked.PSet(
0078             limit = cms.untracked.int32(0)
0079         ),
0080         tTrigdbValidation = cms.untracked.PSet(
0081             limit = cms.untracked.int32(10000000)
0082         ),
0083         noLineBreaks = cms.untracked.bool(True),
0084         threshold = cms.untracked.string('DEBUG'),
0085         DEBUG = cms.untracked.PSet(
0086             limit = cms.untracked.int32(0)
0087         )
0088     ),
0089     categories = cms.untracked.vstring('tTrigdbValidation'),
0090     destinations = cms.untracked.vstring('cout')
0091 )
0092 
0093 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0094 process.dtTTrigAnalyzer = DQMEDAnalyzer('DTtTrigDBValidation',
0095     labelDBRef = cms.string('ttrigRef'),
0096     labelDB = cms.string('ttrigToValidate'),
0097     tTrigTestName = cms.string('tTrigDifferenceInRange'),
0098     OutputMEsInRootFile = cms.untracked.bool(True),
0099     OutputFileName = cms.untracked.string('tTrigDBMonitoring_RUNNUMBERTEMPLATE.root')
0100 )
0101 
0102 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0103 process.qTester = DQMQualityTester(
0104     prescaleFactor = cms.untracked.int32(1),
0105     qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
0106 )
0107 process.p = cms.Path(process.dtTTrigAnalyzer*process.qTester)
0108 process.DQM.collectorHost = ''