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("CALIB")
0004 
0005 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0006 process.load("Geometry.DTGeometry.dtGeometry_cfi")
0007 process.DTGeometryESModule.applyAlignment = False
0008 
0009 process.load("DQMServices.Core.DQM_cfg")
0010 
0011 process.source = cms.Source("EmptySource",
0012     numberEventsInRun = cms.untracked.uint32(1),
0013     #firstRun = cms.untracked.uint32(121475)
0014     firstRun = cms.untracked.uint32(1)
0015 )
0016 
0017 process.maxEvents = cms.untracked.PSet(
0018     input = cms.untracked.int32(1)
0019 )
0020 
0021 
0022 
0023 
0024 process.tzeroRef = cms.ESSource("PoolDBESSource",
0025     DBParameters = cms.PSet(
0026         messageLevel = cms.untracked.int32(0),
0027         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0028     ),
0029     timetype = cms.string('runnumber'),
0030     toGet = cms.VPSet(
0031         cms.PSet(
0032             record = cms.string('DTT0Rcd'),
0033             tag = cms.string('t0'),
0034             label = cms.untracked.string('tzeroRef')
0035         )
0036         ),
0037     connect = cms.string('sqlite_file:REFT0TEMPLATE'),
0038     siteLocalConfig = cms.untracked.bool(False)
0039 )
0040 
0041 process.t0ToValidate = cms.ESSource("PoolDBESSource",
0042     DBParameters = cms.PSet(
0043         messageLevel = cms.untracked.int32(0),
0044         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0045     ),
0046     timetype = cms.string('runnumber'),
0047     toGet = cms.VPSet( 
0048          cms.PSet(
0049     record = cms.string('DTT0Rcd'),
0050     tag = cms.string('t0'),
0051     label = cms.untracked.string('tzeroToValidate')
0052     )
0053         ),
0054     connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_MUONCALIB/DTCALIB/RUNPERIODTEMPLATE/t0/t0_RUNNUMBERTEMPLATE.db'),
0055     siteLocalConfig = cms.untracked.bool(False)
0056 )
0057 
0058 
0059 
0060 
0061 process.MessageLogger = cms.Service("MessageLogger",
0062     debugModules = cms.untracked.vstring('dtT0Analyzer'),
0063     cout = cms.untracked.PSet(
0064         default = cms.untracked.PSet(
0065             limit = cms.untracked.int32(0)
0066         ),
0067         t0dbValidation = cms.untracked.PSet(
0068             limit = cms.untracked.int32(10000000)
0069         ),
0070         noLineBreaks = cms.untracked.bool(True),
0071         threshold = cms.untracked.string('DEBUG'),
0072         #FwkJob = cms.untracked.PSet(
0073         #    limit = cms.untracked.int32(0)
0074         #),
0075         DEBUG = cms.untracked.PSet(
0076             limit = cms.untracked.int32(0)
0077         )
0078     ),
0079     categories = cms.untracked.vstring('t0dbValidation'),
0080     destinations = cms.untracked.vstring('cout')
0081 )
0082 
0083 process.dtT0Analyzer = cms.EDAnalyzer("DTt0DBValidation",
0084     labelDBRef = cms.untracked.string('tzeroRef'),
0085     t0TestName = cms.untracked.string('t0DifferenceInRange'),
0086     OutputFileName = cms.untracked.string('t0DBMonitoring_RUNNUMBERTEMPLATE.root'),
0087     labelDB = cms.untracked.string('tzeroToValidate')
0088 )
0089 
0090 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0091 process.qTester = DQMQualityTester(
0092     prescaleFactor = cms.untracked.int32(1),
0093     qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
0094 )
0095 
0096 process.p = cms.Path(process.dtT0Analyzer*process.qTester)
0097 process.DQM.collectorHost = ''
0098 
0099