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 process.dtTTrigAnalyzer = cms.EDAnalyzer(
"DTtTrigDBValidation",
75 labelDBRef = cms.string(
'ttrigRef'),
76 labelDB = cms.string(
'ttrigToValidate'),
77 tTrigTestName = cms.string(
'tTrigDifferenceInRange'),
81 process.qTester = cms.EDAnalyzer(
"QualityTester",
82 prescaleFactor = cms.untracked.int32(1),
83 reportThreshold = cms.untracked.string(
'black'),
84 qtList = cms.untracked.FileInPath(
'DQMOffline/CalibMuon/data/QualityTests.xml')
87 process.DQMStore.referenceFileName =
''
88 process.dqmSaver.convention =
'Offline'
89 process.dqmSaver.workflow = config.workflowName
90 process.dqmSaver.dirName = config.outputdir
91 process.DQMStore.collateHistograms =
False
92 process.DQM.collectorHost =
''
94 process.DQMStore.referenceFileName = ''
95 process.DQMStore.collateHistograms = True
96 process.dqmSaver.convention = 'Offline'
97 process.dqmSaver.workflow = workflowName
98 process.dqmSaver.saveByRun = -1
99 process.dqmSaver.saveAtJobEnd = True
100 process.dqmSaver.forceRunNumber = runNumber
104 process.p = cms.Path(process.qTester*
105 process.dtTTrigAnalyzer*