CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
writeEcalDQMStatus.py
Go to the documentation of this file.
2 
3 process = cms.Process("READ")
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.EcalTrigTowerConstituents_cfi")
11 
12 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
13 process.EcalTrivialConditionRetriever.producedEcalDQMChannelStatus = False
14 process.EcalTrivialConditionRetriever.producedEcalDQMTowerStatus = False
15 
16 process.load("CondCore.DBCommon.CondDBCommon_cfi")
17 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
18 process.CondDBCommon.connect = 'sqlite_file:mask-ECAL.db'
19 
20 process.source = cms.Source("EmptyIOVSource",
21  firstValue = cms.uint64(1),
22  lastValue = cms.uint64(1),
23  timetype = cms.string('runnumber'),
24  interval = cms.uint64(1)
25  )
26 
27 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
28  process.CondDBCommon,
29  toPut = cms.VPSet(
30  cms.PSet(
31  record = cms.string('EcalDQMChannelStatusRcd'),
32  tag = cms.string('EcalDQMChannelStatus_v1_hlt')
33  ),
34  cms.PSet(
35  record = cms.string('EcalDQMTowerStatusRcd'),
36  tag = cms.string('EcalDQMTowerStatus_v1_hlt')
37  )
38  )
39 )
40 
41 process.write = cms.EDAnalyzer("EcalDQMStatusWriter",
42  verbose = cms.untracked.bool(False),
43  toPut = cms.VPSet(
44 # cms.PSet(
45 # conditionType = cms.untracked.string('EcalDQMChannelStatus'),
46 # since = cms.untracked.uint32(1),
47 # inputFile = cms.untracked.string('list.txt')
48 # ),
49  cms.PSet(
50  conditionType = cms.untracked.string('EcalDQMChannelStatus'),
51  since = cms.untracked.uint32(1),
52  inputFile = cms.untracked.string('mask-ECAL.txt')
53  ),
54 # cms.PSet(
55 # conditionType = cms.untracked.string('EcalDQMTowerStatus'),
56 # since = cms.untracked.uint32(1),
57 # inputFile = cms.untracked.string('list.txt')
58 # ),
59  cms.PSet(
60  conditionType = cms.untracked.string('EcalDQMTowerStatus'),
61  since = cms.untracked.uint32(1),
62  inputFile = cms.untracked.string('mask-ECAL.txt')
63  )
64  )
65 )
66 
67 process.p = cms.Path(process.write)
68