Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:47:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005 process.load("EcalTrivialAlpha_cfi")
0006 
0007 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0008 process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_43X_ECAL'
0009 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0010 #process.CondDBCommon.connect = 'sqlite_file:DB.db'
0011 
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     debugModules = cms.untracked.vstring('*'),
0014     destinations = cms.untracked.vstring('cout')
0015 )
0016 
0017 process.source = cms.Source("EmptyIOVSource",
0018     firstValue = cms.uint64(1),
0019     lastValue = cms.uint64(1),
0020     timetype = cms.string('runnumber'),
0021     interval = cms.uint64(1)
0022 )
0023 
0024 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0025   process.CondDBCommon,
0026   timetype = cms.untracked.string('runnumber'),
0027   toPut = cms.VPSet(
0028     cms.PSet(
0029       record = cms.string('EcalLaserAlphasRcd'),
0030       tag = cms.string('EcalLaserAlphas_v2_hlt')
0031     ), 
0032     cms.PSet(
0033       record = cms.string('EcalLaserAPDPNRatiosRcd'),
0034       tag = cms.string('EcalLaserAPDPNRatios_v2_hlt')
0035     ), 
0036     cms.PSet(
0037       record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
0038       tag = cms.string('EcalLaserAPDPNRatiosRef_v2_hlt')
0039     )
0040   )
0041 )
0042 
0043 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0044   timetype = cms.string('runnumber'),
0045   toCopy = cms.VPSet(
0046     cms.PSet(
0047       record = cms.string('EcalLaserAlphasRcd'),
0048       container = cms.string('EcalLaserAlphas')
0049     ), 
0050     cms.PSet(
0051       record = cms.string('EcalLaserAPDPNRatiosRcd'),
0052       container = cms.string('EcalLaserAPDPNRatios')
0053     ), 
0054     cms.PSet(
0055       record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
0056       container = cms.string('EcalLaserAPDPNRatiosRef')
0057     )
0058   )
0059 )
0060 
0061 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0062 
0063 process.p = cms.Path(process.prod*process.dbCopy)
0064