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 class config: pass
0004 config.runNumber = 1
0005 config.refTag = 'DT_t0_cosmic2009_V01_express'
0006 config.t0DB = 't0.db'
0007 config.dataset = '/MiniDaq/Run2011A-v1/RAW'
0008 config.outputdir = 'DQM'
0009 config.trial = 1
0010 
0011 # Further config.
0012 dataset_vec = config.dataset.split('/')
0013 config.workflowName = '/%s/%s-dtT0DBValidation-rev%d/%s' % (dataset_vec[1],
0014                                                             dataset_vec[2],
0015                                                             config.trial,
0016                                                             dataset_vec[3])
0017 
0018 process = cms.Process("DBValidation")
0019 
0020 process.MessageLogger = cms.Service("MessageLogger",
0021     debugModules = cms.untracked.vstring('dtT0Analyzer'),
0022     cerr = cms.untracked.PSet(
0023         default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0024         InterChannelSynchDBValidation = cms.untracked.PSet( limit = cms.untracked.int32(10000000) ),
0025         threshold = cms.untracked.string('DEBUG'),
0026         DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0027     ),
0028     categories = cms.untracked.vstring('InterChannelSynchDBValidation'),
0029     destinations = cms.untracked.vstring('cerr')
0030 )
0031 
0032 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0033 process.load("Geometry.DTGeometry.dtGeometry_cfi")
0034 process.DTGeometryESModule.applyAlignment = False
0035 
0036 process.load("DQMServices.Core.DQM_cfg")
0037 process.load("DQMServices.Components.DQMEnvironment_cfi")
0038 
0039 process.source = cms.Source("EmptySource",
0040     numberEventsInRun = cms.untracked.uint32(1),
0041     firstRun = cms.untracked.uint32(config.runNumber)
0042 )
0043 
0044 process.maxEvents = cms.untracked.PSet(
0045     input = cms.untracked.int32(1)
0046 )
0047 
0048 process.tzeroRef = cms.ESSource("PoolDBESSource",
0049     DBParameters = cms.PSet(
0050         messageLevel = cms.untracked.int32(0),
0051         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0052     ),
0053     timetype = cms.string('runnumber'),
0054     connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_DT'),
0055     toGet = cms.VPSet(
0056         cms.PSet(
0057             record = cms.string('DTT0Rcd'),
0058             tag = cms.string(config.refTag),
0059             label = cms.untracked.string('tzeroRef')
0060         ), 
0061         cms.PSet(
0062             record = cms.string('DTT0Rcd'),
0063             tag = cms.string('t0'),
0064             connect = cms.untracked.string('sqlite_file:%s' % config.t0DB),
0065             label = cms.untracked.string('tzeroToValidate')
0066         ) 
0067     ),
0068     siteLocalConfig = cms.untracked.bool(False)
0069 )
0070 
0071 process.dtT0Analyzer = cms.EDAnalyzer("DTt0DBValidation",
0072     labelDBRef = cms.string('tzeroRef'),
0073     labelDB = cms.string('tzeroToValidate'),
0074     t0TestName = cms.string('t0DifferenceInRange'),
0075     #OutputFileName = cms.untracked.string('t0DBValidation_DT_t0_cosmic2009_V01_express.root')
0076 )
0077 
0078 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0079 process.qTester = DQMQualityTester(
0080     prescaleFactor = cms.untracked.int32(1),
0081     reportThreshold = cms.untracked.string('black'),
0082     qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
0083 )
0084 
0085 process.dqmSaver.convention = 'Offline'
0086 process.dqmSaver.workflow = config.workflowName
0087 process.DQM.collectorHost = ''
0088 
0089 #process.p = cms.Path(process.dtT0Analyzer*process.qTester*process.dqmSaver)
0090 process.p = cms.Path(process.qTester*
0091                      process.dtT0Analyzer*
0092                      process.dqmSaver)