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 = 'DTTtrig_V01_prompt'
0006 config.ttrigDB = 'ttrig.db'
0007 config.dataset = '/SingleMu/Run2011A-DtCalib-v4/ALCARECO'
0008 config.outputdir = 'DQM'
0009 config.trial = 1
0010 
0011 # Further config.
0012 dataset_vec = config.dataset.split('/')
0013 config.workflowName = '/%s/%s-dtTTrigDBValidation-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('dtTTrigAnalyzer'),
0022     cerr = cms.untracked.PSet(
0023         default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0024         DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0025         TTrigDBValidation = cms.untracked.PSet( limit = cms.untracked.int32(10000000) ),
0026         threshold = cms.untracked.string('DEBUG'),
0027     ),
0028     categories = cms.untracked.vstring('TTrigDBValidation'),
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 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0036 
0037 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0038 process.load("DQMServices.Core.DQM_cfg")
0039 process.load("DQMServices.Components.DQMEnvironment_cfi")
0040 
0041 process.source = cms.Source("EmptySource",
0042     numberEventsInRun = cms.untracked.uint32(1),
0043     firstRun = cms.untracked.uint32(config.runNumber)
0044 )
0045 
0046 process.maxEvents = cms.untracked.PSet(
0047     input = cms.untracked.int32(1)
0048 )
0049 
0050 process.ttrigRef = cms.ESSource("PoolDBESSource",
0051     DBParameters = cms.PSet(
0052         messageLevel = cms.untracked.int32(0),
0053         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0054     ),
0055     timetype = cms.string('runnumber'),
0056     connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_DT'),
0057     #connect = cms.string(''),
0058     toGet = cms.VPSet(
0059         cms.PSet(
0060             record = cms.string('DTTtrigRcd'),
0061             tag = cms.string(config.refTag),
0062             label = cms.untracked.string('ttrigRef')
0063         ), 
0064         cms.PSet(
0065             record = cms.string('DTTtrigRcd'),
0066             tag = cms.string('ttrig'),
0067             connect = cms.untracked.string('sqlite_file:%s' % config.ttrigDB),
0068             label = cms.untracked.string('ttrigToValidate')
0069         )
0070     ),
0071     siteLocalConfig = cms.untracked.bool(False)
0072 )
0073 
0074 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0075 process.dtTTrigAnalyzer = DQMEDAnalyzer('DTtTrigDBValidation',
0076     labelDBRef = cms.string('ttrigRef'),
0077     labelDB = cms.string('ttrigToValidate'),
0078     tTrigTestName = cms.string('tTrigDifferenceInRange'),
0079     #OutputFileName = cms.string('tTrigDBValidation_DT_tTrig_cosmics_2009_v3_prompt.root')
0080 )
0081 
0082 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0083 process.qTester = DQMQualityTester(
0084     prescaleFactor = cms.untracked.int32(1),
0085     reportThreshold = cms.untracked.string('black'),
0086     qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
0087 )
0088 
0089 process.dqmSaver.convention = 'Offline'
0090 process.dqmSaver.workflow = config.workflowName
0091 process.dqmSaver.dirName = config.outputdir
0092 process.DQM.collectorHost = ''
0093 """
0094 process.dqmSaver.convention = 'Offline'
0095 process.dqmSaver.workflow = workflowName
0096 process.dqmSaver.saveByRun = -1
0097 process.dqmSaver.saveAtJobEnd = True
0098 process.dqmSaver.forceRunNumber = runNumber
0099 """
0100 
0101 #process.p = cms.Path(process.dtTTrigAnalyzer*process.qTester*process.dqmSaver)
0102 process.p = cms.Path(process.qTester*
0103                      process.dtTTrigAnalyzer*
0104                      process.dqmSaver)