CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DQM/EcalCommon/data/writeEcalDQMStatus.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("DB")
00004 
00005 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
00006 
00007 process.load("Geometry.EcalMapping.EcalMapping_cfi")
00008 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
00009 
00010 process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
00011 process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
00012 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
00013 
00014 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
00015 process.EcalTrivialConditionRetriever.producedEcalDQMChannelStatus = False
00016 process.EcalTrivialConditionRetriever.producedEcalDQMTowerStatus = False
00017 
00018 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00019 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
00020 #process.CondDBCommon.connect = 'sqlite_file:mask-ECAL.db'
00021 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_34X_ECAL'
00022 
00023 process.source = cms.Source("EmptyIOVSource",
00024                             firstValue = cms.uint64(1),
00025                             lastValue = cms.uint64(1),
00026                             timetype = cms.string('runnumber'),
00027                             interval = cms.uint64(1)
00028                             )
00029 
00030 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00031   process.CondDBCommon,
00032   toPut = cms.VPSet(
00033     cms.PSet(
00034       record = cms.string('EcalDQMChannelStatusRcd'),
00035 #      tag = cms.string('EcalDQMChannelStatus_v1_hlt')
00036 #      tag = cms.string('EcalDQMChannelStatus_v1_express')
00037 #      tag = cms.string('EcalDQMChannelStatus_v1_offline')
00038     ),
00039     cms.PSet(
00040       record = cms.string('EcalDQMTowerStatusRcd'),
00041 #      tag = cms.string('EcalDQMTowerStatus_v1_hlt')
00042 #      tag = cms.string('EcalDQMTowerStatus_v1_express')
00043 #      tag = cms.string('EcalDQMTowerStatus_v1_offline')      
00044     )
00045   )
00046 )
00047 
00048 process.write = cms.EDAnalyzer("EcalDQMStatusWriter",
00049   verbose = cms.untracked.bool(False),
00050   toPut = cms.VPSet(
00051     cms.PSet(
00052       conditionType = cms.untracked.string('EcalDQMChannelStatus'),
00053       since = cms.untracked.uint32(1),
00054       inputFile = cms.untracked.string('mask-ECAL.txt')
00055     ),
00056     cms.PSet(
00057       conditionType = cms.untracked.string('EcalDQMTowerStatus'),
00058       since = cms.untracked.uint32(1),
00059       inputFile = cms.untracked.string('mask-ECAL.txt')
00060     )
00061   )
00062 )
00063 
00064 process.p = cms.Path(process.write)
00065