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 
0024 process.source = cms.Source("EmptySource",
0025     numberEventsInRun = cms.untracked.uint32(1),
0026     firstRun = cms.untracked.uint32(1)
0027 )
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(1)
0031 )
0032 process.noiseRef = cms.ESSource("PoolDBESSource",
0033     process.CondDBSetup,
0034     toGet = cms.VPSet(cms.PSet(
0035         record = cms.string('DTStatusFlagRcd'),
0036         tag = cms.string('noise'),
0037         connect = cms.untracked.string('sqlite_file:noise_66722.db'),
0038         label = cms.untracked.string('noiseRef')
0039     ), 
0040         cms.PSet(
0041             record = cms.string('DTStatusFlagRcd'),
0042             tag = cms.string('noise'),
0043             connect = cms.untracked.string('sqlite_file:noise_68958.db'),
0044             label = cms.untracked.string('noiseToValidate')
0045         )),
0046     connect = cms.string('')
0047 )
0048 
0049 process.MessageLogger = cms.Service("MessageLogger",
0050     debugModules = cms.untracked.vstring('dtNoiseAnalyzer'),
0051     cout = cms.untracked.PSet(
0052         default = cms.untracked.PSet(
0053             limit = cms.untracked.int32(0)
0054         ),
0055         noiseDbValidation = cms.untracked.PSet(
0056             limit = cms.untracked.int32(10000000)
0057         ),
0058         noLineBreaks = cms.untracked.bool(True),
0059         threshold = cms.untracked.string('DEBUG'),
0060         DEBUG = cms.untracked.PSet(
0061             limit = cms.untracked.int32(0)
0062         )
0063     ),
0064     categories = cms.untracked.vstring('noiseDbValidation'),
0065     destinations = cms.untracked.vstring('cout')
0066 )
0067 
0068 process.dtNoiseAnalyzer = cms.EDAnalyzer("DTnoiseDBValidation",
0069     labelDBRef = cms.untracked.string('noiseRef'),
0070     diffTestName = cms.untracked.string('noiseDifferenceInRange'),
0071     wheelTestName = cms.untracked.string('noiseWheelOccInRange'),
0072     stationTestName = cms.untracked.string('noiseStationOccInRange'),
0073     sectorTestName = cms.untracked.string('noiseSectorOccInRange'),                                   
0074     TestName = cms.untracked.string('noiseWheelOccInRange'),                                
0075     OutputFileName = cms.untracked.string('noiseTestMonitoring_2.root'),
0076     labelDB = cms.untracked.string('noiseToValidate')
0077 )
0078 
0079 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0080 process.qTester = DQMQualityTester(
0081     prescaleFactor = cms.untracked.int32(1),
0082     qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
0083 )
0084 
0085 process.p = cms.Path(process.dtNoiseAnalyzer*process.qTester)
0086 process.DQM.collectorHost = ''
0087 
0088