CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
writeEcalDQMStatus.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("DB")
4 
5 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
6 
7 process.load("Geometry.EcalMapping.EcalMapping_cfi")
8 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
9 
10 process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
11 process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
12 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
13 
14 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
15 process.EcalTrivialConditionRetriever.producedEcalDQMChannelStatus = False
16 process.EcalTrivialConditionRetriever.producedEcalDQMTowerStatus = False
17 
18 process.load("CondCore.CondDB.CondDB_cfi")
19 process.CondDB.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
20 process.CondDB.connect = 'sqlite_file:mask-ECAL.db'
21 #process.CondDB.connect = 'oracle://cms_orcon_prod/CMS_COND_34X_ECAL'
22 
23 process.source = cms.Source("EmptyIOVSource",
24  firstValue = cms.uint64(1),
25  lastValue = cms.uint64(1),
26  timetype = cms.string('runnumber'),
27  interval = cms.uint64(1)
28  )
29 
30 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
31  process.CondDB,
32  toPut = cms.VPSet(
33  cms.PSet(
34  record = cms.string('EcalDQMChannelStatusRcd'),
35  tag = cms.string('EcalDQMChannelStatus_v1_hlt')
36 # tag = cms.string('EcalDQMChannelStatus_v1_express')
37 # tag = cms.string('EcalDQMChannelStatus_v1_offline')
38  ),
39  cms.PSet(
40  record = cms.string('EcalDQMTowerStatusRcd'),
41  tag = cms.string('EcalDQMTowerStatus_v1_hlt')
42 # tag = cms.string('EcalDQMTowerStatus_v1_express')
43 # tag = cms.string('EcalDQMTowerStatus_v1_offline')
44  )
45  )
46 )
47 
48 process.write = cms.EDAnalyzer("EcalDQMStatusWriter",
49  firstRun = cms.untracked.uint32(350000),
50  inputFile = cms.untracked.string('mask-EB.txt')
51  #inputFile = cms.untracked.string('mask-EE.txt')
52 )
53 
54 process.p = cms.Path(process.write)
55