1 import FWCore.ParameterSet.Config
as cms
5 config.refTag =
'DTTtrig_V01_prompt' 6 config.ttrigDB =
'ttrig.db' 7 config.dataset =
'/SingleMu/Run2011A-DtCalib-v4/ALCARECO' 8 config.outputdir =
'DQM' 12 dataset_vec = config.dataset.split(
'/')
13 config.workflowName =
'/%s/%s-dtTTrigDBValidation-rev%d/%s' % (dataset_vec[1],
18 process = cms.Process(
"DBValidation")
20 process.MessageLogger = cms.Service(
"MessageLogger",
21 debugModules = cms.untracked.vstring(
'dtTTrigAnalyzer'),
22 cerr = cms.untracked.PSet(
23 default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
24 DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
25 TTrigDBValidation = cms.untracked.PSet( limit = cms.untracked.int32(10000000) ),
26 threshold = cms.untracked.string(
'DEBUG'),
28 categories = cms.untracked.vstring(
'TTrigDBValidation'),
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 35 process.load(
"Geometry.MuonNumbering.muonNumberingInitialization_cfi")
37 process.load(
"CondCore.DBCommon.CondDBSetup_cfi")
38 process.load(
"DQMServices.Core.DQM_cfg")
39 process.load(
"DQMServices.Components.DQMEnvironment_cfi")
41 process.source = cms.Source(
"EmptySource",
42 numberEventsInRun = cms.untracked.uint32(1),
43 firstRun = cms.untracked.uint32(config.runNumber)
46 process.maxEvents = cms.untracked.PSet(
47 input = cms.untracked.int32(1)
50 process.ttrigRef = cms.ESSource(
"PoolDBESSource",
51 DBParameters = cms.PSet(
52 messageLevel = cms.untracked.int32(0),
53 authenticationPath = cms.untracked.string(
'/afs/cern.ch/cms/DB/conddb')
55 timetype = cms.string(
'runnumber'),
56 connect = cms.string(
'oracle://cms_orcoff_prod/CMS_COND_31X_DT'),
60 record = cms.string(
'DTTtrigRcd'),
61 tag = cms.string(config.refTag),
62 label = cms.untracked.string(
'ttrigRef')
65 record = cms.string(
'DTTtrigRcd'),
66 tag = cms.string(
'ttrig'),
67 connect = cms.untracked.string(
'sqlite_file:%s' % config.ttrigDB),
68 label = cms.untracked.string(
'ttrigToValidate')
71 siteLocalConfig = cms.untracked.bool(
False)
74 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
75 process.dtTTrigAnalyzer =
DQMEDAnalyzer(
'DTtTrigDBValidation',
76 labelDBRef = cms.string(
'ttrigRef'),
77 labelDB = cms.string(
'ttrigToValidate'),
78 tTrigTestName = cms.string(
'tTrigDifferenceInRange'),
82 process.qTester = cms.EDAnalyzer(
"QualityTester",
83 prescaleFactor = cms.untracked.int32(1),
84 reportThreshold = cms.untracked.string(
'black'),
85 qtList = cms.untracked.FileInPath(
'DQMOffline/CalibMuon/data/QualityTests.xml')
88 process.DQMStore.referenceFileName =
'' 89 process.dqmSaver.convention =
'Offline' 90 process.dqmSaver.workflow = config.workflowName
91 process.dqmSaver.dirName = config.outputdir
92 process.DQMStore.collateHistograms =
False 93 process.DQM.collectorHost =
'' 95 process.DQMStore.referenceFileName = '' 96 process.DQMStore.collateHistograms = True 97 process.dqmSaver.convention = 'Offline' 98 process.dqmSaver.workflow = workflowName 99 process.dqmSaver.saveByRun = -1 100 process.dqmSaver.saveAtJobEnd = True 101 process.dqmSaver.forceRunNumber = runNumber 105 process.p = cms.Path(process.qTester*
106 process.dtTTrigAnalyzer*