1 import FWCore.ParameterSet.Config
as cms
5 config.refTag =
'DT_t0_cosmic2009_V01_express'
7 config.dataset =
'/MiniDaq/Run2011A-v1/RAW'
8 config.outputdir =
'DQM'
12 dataset_vec = config.dataset.split(
'/')
13 config.workflowName =
'/%s/%s-dtT0DBValidation-rev%d/%s' % (dataset_vec[1],
18 process = cms.Process(
"DBValidation")
20 process.MessageLogger = cms.Service(
"MessageLogger",
21 debugModules = cms.untracked.vstring(
'dtT0Analyzer'),
22 cerr = cms.untracked.PSet(
23 default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
24 InterChannelSynchDBValidation = cms.untracked.PSet( limit = cms.untracked.int32(10000000) ),
25 threshold = cms.untracked.string(
'DEBUG'),
26 DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) )
28 categories = cms.untracked.vstring(
'InterChannelSynchDBValidation'),
29 destinations = cms.untracked.vstring(
'cerr')
32 process.load(
"Configuration.StandardSequences.GeometryRecoDB_cff")
33 process.load(
"Geometry.DTGeometry.dtGeometry_cfi")
34 process.DTGeometryESModule.applyAlignment =
False
36 process.load(
"DQMServices.Core.DQM_cfg")
37 process.load(
"DQMServices.Components.DQMEnvironment_cfi")
39 process.source = cms.Source(
"EmptySource",
40 numberEventsInRun = cms.untracked.uint32(1),
41 firstRun = cms.untracked.uint32(config.runNumber)
44 process.maxEvents = cms.untracked.PSet(
45 input = cms.untracked.int32(1)
48 process.tzeroRef = cms.ESSource(
"PoolDBESSource",
49 DBParameters = cms.PSet(
50 messageLevel = cms.untracked.int32(0),
51 authenticationPath = cms.untracked.string(
'/afs/cern.ch/cms/DB/conddb')
53 timetype = cms.string(
'runnumber'),
54 connect = cms.string(
'oracle://cms_orcoff_prod/CMS_COND_31X_DT'),
57 record = cms.string(
'DTT0Rcd'),
58 tag = cms.string(config.refTag),
59 label = cms.untracked.string(
'tzeroRef')
62 record = cms.string(
'DTT0Rcd'),
63 tag = cms.string(
't0'),
64 connect = cms.untracked.string(
'sqlite_file:%s' % config.t0DB),
65 label = cms.untracked.string(
'tzeroToValidate')
68 siteLocalConfig = cms.untracked.bool(
False)
71 process.dtT0Analyzer = cms.EDAnalyzer(
"DTt0DBValidation",
72 labelDBRef = cms.string(
'tzeroRef'),
73 labelDB = cms.string(
'tzeroToValidate'),
74 t0TestName = cms.string(
't0DifferenceInRange'),
78 process.qTester = cms.EDAnalyzer(
"QualityTester",
79 prescaleFactor = cms.untracked.int32(1),
80 reportThreshold = cms.untracked.string(
'black'),
81 qtList = cms.untracked.FileInPath(
'DQMOffline/CalibMuon/data/QualityTests.xml')
84 process.DQMStore.referenceFileName =
''
85 process.dqmSaver.convention =
'Offline'
86 process.dqmSaver.workflow = config.workflowName
87 process.DQMStore.collateHistograms =
False
88 process.DQM.collectorHost =
''
91 process.p = cms.Path(process.qTester*