Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 class config: pass
00004 config.runNumber = 1
00005 config.refTag = 'DT_t0_cosmic2009_V01_express'
00006 config.t0DB = 't0.db'
00007 config.dataset = '/MiniDaq/Run2011A-v1/RAW'
00008 config.outputdir = 'DQM'
00009 config.trial = 1
00010
00011
00012 dataset_vec = config.dataset.split('/')
00013 config.workflowName = '/%s/%s-DTt0DBValidation-rev%d/%s' % (dataset_vec[1],
00014 dataset_vec[2],
00015 config.trial,
00016 dataset_vec[3])
00017
00018 process = cms.Process("DBValidation")
00019
00020 process.MessageLogger = cms.Service("MessageLogger",
00021 debugModules = cms.untracked.vstring('dtT0Analyzer'),
00022 cerr = cms.untracked.PSet(
00023 default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
00024 InterChannelSynchDBValidation = cms.untracked.PSet( limit = cms.untracked.int32(10000000) ),
00025 threshold = cms.untracked.string('DEBUG'),
00026 DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) )
00027 ),
00028 categories = cms.untracked.vstring('InterChannelSynchDBValidation'),
00029 destinations = cms.untracked.vstring('cerr')
00030 )
00031
00032 process.load("Configuration.StandardSequences.Geometry_cff")
00033 process.load("Geometry.DTGeometry.dtGeometry_cfi")
00034 process.DTGeometryESModule.applyAlignment = False
00035
00036 process.load("DQMServices.Core.DQM_cfg")
00037 process.load("DQMServices.Components.DQMEnvironment_cfi")
00038
00039 process.source = cms.Source("EmptySource",
00040 numberEventsInRun = cms.untracked.uint32(1),
00041 firstRun = cms.untracked.uint32(config.runNumber)
00042 )
00043
00044 process.maxEvents = cms.untracked.PSet(
00045 input = cms.untracked.int32(1)
00046 )
00047
00048 process.tzeroRef = cms.ESSource("PoolDBESSource",
00049 DBParameters = cms.PSet(
00050 messageLevel = cms.untracked.int32(0),
00051 authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
00052 ),
00053 timetype = cms.string('runnumber'),
00054 connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_DT'),
00055 toGet = cms.VPSet(
00056 cms.PSet(
00057 record = cms.string('DTT0Rcd'),
00058 tag = cms.string(config.refTag),
00059 label = cms.untracked.string('tzeroRef')
00060 ),
00061 cms.PSet(
00062 record = cms.string('DTT0Rcd'),
00063 tag = cms.string('t0'),
00064 connect = cms.untracked.string('sqlite_file:%s' % config.t0DB),
00065 label = cms.untracked.string('tzeroToValidate')
00066 )
00067 ),
00068 siteLocalConfig = cms.untracked.bool(False)
00069 )
00070
00071 process.dtT0Analyzer = cms.EDAnalyzer("DTt0DBValidation",
00072 labelDBRef = cms.string('tzeroRef'),
00073 labelDB = cms.string('tzeroToValidate'),
00074 t0TestName = cms.string('t0DifferenceInRange'),
00075
00076 )
00077
00078 process.qTester = cms.EDAnalyzer("QualityTester",
00079 prescaleFactor = cms.untracked.int32(1),
00080 reportThreshold = cms.untracked.string('black'),
00081 qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
00082 )
00083
00084 process.DQMStore.referenceFileName = ''
00085 process.dqmSaver.convention = 'Offline'
00086 process.dqmSaver.workflow = config.workflowName
00087 process.DQMStore.collateHistograms = False
00088 process.DQM.collectorHost = ''
00089
00090
00091 process.p = cms.Path(process.qTester*
00092 process.dtT0Analyzer*
00093 process.dqmSaver)