CMS 3D CMS Logo

dtTTrigDBValidation_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 class config: pass
4 config.runNumber = 1
5 config.refTag = 'DTTtrig_V01_prompt'
6 config.ttrigDB = 'ttrig.db'
7 config.dataset = '/SingleMu/Run2011A-DtCalib-v4/ALCARECO'
8 config.outputdir = 'DQM'
9 config.trial = 1
10 
11 # Further config.
12 dataset_vec = config.dataset.split('/')
13 config.workflowName = '/%s/%s-dtTTrigDBValidation-rev%d/%s' % (dataset_vec[1],
14  dataset_vec[2],
15  config.trial,
16  dataset_vec[3])
17 
18 process = cms.Process("DBValidation")
19 
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'),
27  ),
28  categories = cms.untracked.vstring('TTrigDBValidation'),
29  destinations = cms.untracked.vstring('cerr')
30 )
31 
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")
36 
37 process.load("CondCore.DBCommon.CondDBSetup_cfi")
38 process.load("DQMServices.Core.DQM_cfg")
39 process.load("DQMServices.Components.DQMEnvironment_cfi")
40 
41 process.source = cms.Source("EmptySource",
42  numberEventsInRun = cms.untracked.uint32(1),
43  firstRun = cms.untracked.uint32(config.runNumber)
44 )
45 
46 process.maxEvents = cms.untracked.PSet(
47  input = cms.untracked.int32(1)
48 )
49 
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')
54  ),
55  timetype = cms.string('runnumber'),
56  connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_DT'),
57  #connect = cms.string(''),
58  toGet = cms.VPSet(
59  cms.PSet(
60  record = cms.string('DTTtrigRcd'),
61  tag = cms.string(config.refTag),
62  label = cms.untracked.string('ttrigRef')
63  ),
64  cms.PSet(
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')
69  )
70  ),
71  siteLocalConfig = cms.untracked.bool(False)
72 )
73 
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'),
79  #OutputFileName = cms.string('tTrigDBValidation_DT_tTrig_cosmics_2009_v3_prompt.root')
80 )
81 
82 from DQMServices.Core.DQMQualityTester import DQMQualityTester
83 process.qTester = DQMQualityTester(
84  prescaleFactor = cms.untracked.int32(1),
85  reportThreshold = cms.untracked.string('black'),
86  qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
87 )
88 
89 process.dqmSaver.convention = 'Offline'
90 process.dqmSaver.workflow = config.workflowName
91 process.dqmSaver.dirName = config.outputdir
92 process.DQM.collectorHost = ''
93 """
94 process.dqmSaver.convention = 'Offline'
95 process.dqmSaver.workflow = workflowName
96 process.dqmSaver.saveByRun = -1
97 process.dqmSaver.saveAtJobEnd = True
98 process.dqmSaver.forceRunNumber = runNumber
99 """
100 
101 #process.p = cms.Path(process.dtTTrigAnalyzer*process.qTester*process.dqmSaver)
102 process.p = cms.Path(process.qTester*
103  process.dtTTrigAnalyzer*
104  process.dqmSaver)
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
DQMQualityTester
Definition: DQMQualityTester.py:1
dtTTrigDBValidation_cfg.config
Definition: dtTTrigDBValidation_cfg.py:3