File indexing completed on 2025-04-17 02:42:09
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 toGet = cms.VPSet(cms.PSet(
0038 record = cms.string('DTStatusFlagRcd'),
0039 tag = cms.string('noise_CRAFT_V01_offline'),
0040 label = cms.untracked.string('noiseRef')
0041 ),
0042 cms.PSet(
0043 record = cms.string('DTStatusFlagRcd'),
0044 tag = cms.string('noise'),
0045 connect = cms.untracked.string('sqlite_file:noise_66722.db'),
0046 label = cms.untracked.string('noiseToValidate')
0047 )),
0048 connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_30X_DT'),
0049 )
0050
0051 process.MessageLogger = cms.Service("MessageLogger",
0052 debugModules = cms.untracked.vstring('dtNoiseAnalyzer'),
0053 cout = cms.untracked.PSet(
0054 default = cms.untracked.PSet(
0055 limit = cms.untracked.int32(0)
0056 ),
0057 noiseDbValidation = cms.untracked.PSet(
0058 limit = cms.untracked.int32(10000000)
0059 ),
0060 noLineBreaks = cms.untracked.bool(True),
0061 threshold = cms.untracked.string('DEBUG'),
0062 DEBUG = cms.untracked.PSet(
0063 limit = cms.untracked.int32(0)
0064 )
0065 ),
0066 categories = cms.untracked.vstring('noiseDbValidation'),
0067 destinations = cms.untracked.vstring('cout')
0068 )
0069
0070 process.dtNoiseAnalyzer = cms.EDAnalyzer("DTnoiseDBValidation",
0071 labelDBRef = cms.untracked.string('noiseRef'),
0072 diffTestName = cms.untracked.string('noiseDifferenceInRange'),
0073 wheelTestName = cms.untracked.string('noiseWheelOccInRange'),
0074 stationTestName = cms.untracked.string('noiseStationOccInRange'),
0075 sectorTestName = cms.untracked.string('noiseSectorOccInRange'),
0076 TestName = cms.untracked.string('noiseWheelOccInRange'),
0077 OutputFileName = cms.untracked.string('noiseTestMonitoring.root'),
0078 labelDB = cms.untracked.string('noiseToValidate')
0079 )
0080
0081 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0082 process.qTester = DQMQualityTester(
0083 prescaleFactor = cms.untracked.int32(1),
0084 qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
0085 )
0086
0087 process.p = cms.Path(process.dtNoiseAnalyzer*process.qTester)
0088 process.DQM.collectorHost = ''
0089
0090