CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 process.dtTTrigAnalyzer = cms.EDAnalyzer("DTtTrigDBValidation",
75  labelDBRef = cms.string('ttrigRef'),
76  labelDB = cms.string('ttrigToValidate'),
77  tTrigTestName = cms.string('tTrigDifferenceInRange'),
78  #OutputFileName = cms.string('tTrigDBValidation_DT_tTrig_cosmics_2009_v3_prompt.root')
79 )
80 
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')
85 )
86 
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 = ''
93 """
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
101 """
102 
103 #process.p = cms.Path(process.dtTTrigAnalyzer*process.qTester*process.dqmSaver)
104 process.p = cms.Path(process.qTester*
105  process.dtTTrigAnalyzer*
106  process.dqmSaver)