Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-01 02:24:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DB")
0004 
0005 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0006 
0007 process.load("Geometry.EcalMapping.EcalMapping_cfi")
0008 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
0009 
0010 process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
0011 process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
0012 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0013 
0014 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0015 process.EcalTrivialConditionRetriever.producedEcalDQMChannelStatus = False
0016 process.EcalTrivialConditionRetriever.producedEcalDQMTowerStatus = False
0017 
0018 process.load("CondCore.CondDB.CondDB_cfi")
0019 process.CondDB.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0020 process.CondDB.connect = 'sqlite_file:mask-ECAL.db'
0021 #process.CondDB.connect = 'oracle://cms_orcon_prod/CMS_COND_34X_ECAL'
0022 
0023 process.source = cms.Source("EmptyIOVSource",
0024                             firstValue = cms.uint64(1),
0025                             lastValue = cms.uint64(1),
0026                             timetype = cms.string('runnumber'),
0027                             interval = cms.uint64(1)
0028                             )
0029 
0030 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0031   process.CondDB,
0032   toPut = cms.VPSet(
0033     cms.PSet(
0034       record = cms.string('EcalDQMChannelStatusRcd'),
0035       tag = cms.string('EcalDQMChannelStatus_v1_hlt')
0036 #      tag = cms.string('EcalDQMChannelStatus_v1_express')
0037 #      tag = cms.string('EcalDQMChannelStatus_v1_offline')
0038     ),
0039     cms.PSet(
0040       record = cms.string('EcalDQMTowerStatusRcd'),
0041       tag = cms.string('EcalDQMTowerStatus_v1_hlt')
0042 #      tag = cms.string('EcalDQMTowerStatus_v1_express')
0043 #      tag = cms.string('EcalDQMTowerStatus_v1_offline')      
0044     )
0045   )
0046 )
0047 
0048 process.write = cms.EDAnalyzer("EcalDQMStatusWriter",
0049     firstRun = cms.untracked.uint32(350000),
0050     inputFile = cms.untracked.string('mask-EB.txt')
0051     #inputFile = cms.untracked.string('mask-EE.txt')
0052 )
0053 
0054 process.p = cms.Path(process.write)
0055