Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("noiseCALIB")
0004 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0005 
0006 process.load("Geometry.MuonCommonData.muonIdealGeometryXML_cfi")
0007 
0008 process.load("Geometry.DTGeometry.dtGeometry_cfi")
0009 process.DTGeometryESModule.applyAlignment = False
0010 
0011 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0012 
0013 process.load("DQMServices.Core.DQM_cfg")
0014 
0015 from CalibTracker.Configuration.Common.PoolDBESSource_cfi import poolDBESSource
0016 poolDBESSource.connect = "frontier://FrontierDev/CMS_COND_ALIGNMENT"
0017 poolDBESSource.toGet = cms.VPSet(cms.PSet(
0018         record = cms.string('GlobalPositionRcd'),
0019         tag = cms.string('IdealGeometry')
0020     )) 
0021 process.glbPositionSource = poolDBESSource
0022 
0023 process.source = cms.Source("EmptySource",
0024     numberEventsInRun = cms.untracked.uint32(1),
0025     firstRun = cms.untracked.uint32(68958)
0026 )
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029     input = cms.untracked.int32(1)
0030 )
0031 
0032 process.noiseRef = cms.ESSource("PoolDBESSource",
0033     DBParameters = cms.PSet(
0034         messageLevel = cms.untracked.int32(0),
0035         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0036     ),
0037     timetype = cms.string('runnumber'),
0038     toGet = cms.VPSet(cms.PSet(
0039         record = cms.string('DTStatusFlagRcd'),
0040         tag = cms.string('noise_CRAFT_V01_offline'),
0041         label = cms.untracked.string('noiseRef')
0042     ), 
0043         cms.PSet(
0044             record = cms.string('DTStatusFlagRcd'),
0045             tag = cms.string('noise'),
0046             connect = cms.untracked.string('sqlite_file:noise_66722.db'),
0047             label = cms.untracked.string('noiseToValidate')
0048         )),
0049     connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_30X_DT'),
0050     siteLocalConfig = cms.untracked.bool(False)                           
0051 )
0052 
0053 process.MessageLogger = cms.Service("MessageLogger",
0054     debugModules = cms.untracked.vstring('dtNoiseAnalyzer'),
0055     cout = cms.untracked.PSet(
0056         default = cms.untracked.PSet(
0057             limit = cms.untracked.int32(0)
0058         ),
0059         noiseDbValidation = cms.untracked.PSet(
0060             limit = cms.untracked.int32(10000000)
0061         ),
0062         noLineBreaks = cms.untracked.bool(True),
0063         threshold = cms.untracked.string('DEBUG'),
0064         DEBUG = cms.untracked.PSet(
0065             limit = cms.untracked.int32(0)
0066         )
0067     ),
0068     categories = cms.untracked.vstring('noiseDbValidation'),
0069     destinations = cms.untracked.vstring('cout')
0070 )
0071 
0072 process.dtNoiseAnalyzer = cms.EDAnalyzer("DTnoiseDBValidation",
0073     labelDBRef = cms.untracked.string('noiseRef'),
0074     diffTestName = cms.untracked.string('noiseDifferenceInRange'),
0075     wheelTestName = cms.untracked.string('noiseWheelOccInRange'),
0076     stationTestName = cms.untracked.string('noiseStationOccInRange'),
0077     sectorTestName = cms.untracked.string('noiseSectorOccInRange'),                       
0078     TestName = cms.untracked.string('noiseWheelOccInRange'),                                
0079     OutputFileName = cms.untracked.string('noiseTestMonitoring.root'),
0080     labelDB = cms.untracked.string('noiseToValidate')
0081 )
0082 
0083 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0084 process.qTester = DQMQualityTester(
0085     prescaleFactor = cms.untracked.int32(1),
0086     qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
0087 )
0088 
0089 process.p = cms.Path(process.dtNoiseAnalyzer*process.qTester)
0090 process.DQM.collectorHost = ''
0091 
0092