CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dtT0DBValidation_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 = 'DT_t0_cosmic2009_V01_express'
6 config.t0DB = 't0.db'
7 config.dataset = '/MiniDaq/Run2011A-v1/RAW'
8 config.outputdir = 'DQM'
9 config.trial = 1
10 
11 # Further config.
12 dataset_vec = config.dataset.split('/')
13 config.workflowName = '/%s/%s-dtT0DBValidation-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('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) )
27  ),
28  categories = cms.untracked.vstring('InterChannelSynchDBValidation'),
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 
36 process.load("DQMServices.Core.DQM_cfg")
37 process.load("DQMServices.Components.DQMEnvironment_cfi")
38 
39 process.source = cms.Source("EmptySource",
40  numberEventsInRun = cms.untracked.uint32(1),
41  firstRun = cms.untracked.uint32(config.runNumber)
42 )
43 
44 process.maxEvents = cms.untracked.PSet(
45  input = cms.untracked.int32(1)
46 )
47 
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')
52  ),
53  timetype = cms.string('runnumber'),
54  connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_DT'),
55  toGet = cms.VPSet(
56  cms.PSet(
57  record = cms.string('DTT0Rcd'),
58  tag = cms.string(config.refTag),
59  label = cms.untracked.string('tzeroRef')
60  ),
61  cms.PSet(
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')
66  )
67  ),
68  siteLocalConfig = cms.untracked.bool(False)
69 )
70 
71 process.dtT0Analyzer = cms.EDAnalyzer("DTt0DBValidation",
72  labelDBRef = cms.string('tzeroRef'),
73  labelDB = cms.string('tzeroToValidate'),
74  t0TestName = cms.string('t0DifferenceInRange'),
75  #OutputFileName = cms.untracked.string('t0DBValidation_DT_t0_cosmic2009_V01_express.root')
76 )
77 
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')
82 )
83 
84 process.DQMStore.referenceFileName = ''
85 process.dqmSaver.convention = 'Offline'
86 process.dqmSaver.workflow = config.workflowName
87 process.DQMStore.collateHistograms = False
88 process.DQM.collectorHost = ''
89 
90 #process.p = cms.Path(process.dtT0Analyzer*process.qTester*process.dqmSaver)
91 process.p = cms.Path(process.qTester*
92  process.dtT0Analyzer*
93  process.dqmSaver)