CMS 3D CMS Logo

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.DBCommon.CondDBCommon_cfi")
19 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
20 #process.CondDBCommon.connect = 'sqlite_file:mask-ECAL.db'
21 #process.CondDBCommon.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.CondDBCommon,
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  verbose = cms.untracked.bool(False),
50  toPut = cms.VPSet(
51  cms.PSet(
52  conditionType = cms.untracked.string('EcalDQMChannelStatus'),
53  since = cms.untracked.uint32(1),
54  inputFile = cms.untracked.string('mask-ECAL.txt')
55  ),
56  cms.PSet(
57  conditionType = cms.untracked.string('EcalDQMTowerStatus'),
58  since = cms.untracked.uint32(1),
59  inputFile = cms.untracked.string('mask-ECAL.txt')
60  )
61  )
62 )
63 
64 process.p = cms.Path(process.write)
65