Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process("TEST")
00004 process.load("CalibCalorimetry.EcalTrivialCondModules.ESTrivialCondRetriever_cfi")
00005
00006 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00007
00008 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
00009 process.CondDBCommon.connect = 'sqlite_file:DB.db'
00010
00011 process.MessageLogger = cms.Service("MessageLogger",
00012 debugModules = cms.untracked.vstring('*'),
00013 destinations = cms.untracked.vstring('cout')
00014 )
00015
00016 process.source = cms.Source("EmptyIOVSource",
00017 firstValue = cms.uint64(1),
00018 lastValue = cms.uint64(1),
00019 timetype = cms.string('runnumber'),
00020 interval = cms.uint64(1)
00021 )
00022
00023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00024 process.CondDBCommon,
00025 toPut = cms.VPSet(
00026 cms.PSet(
00027 record = cms.string('ESADCToGeVConstantRcd'),
00028 tag = cms.string('ESADCToGeVConstant_mc')
00029 ),
00030 cms.PSet(
00031 record = cms.string('ESPedestalsRcd'),
00032 tag = cms.string('ESPedestals_mc')
00033 ),
00034 cms.PSet(
00035 record = cms.string('ESChannelStatusRcd'),
00036 tag = cms.string('EChannelStatus_mc')
00037 ),
00038 cms.PSet(
00039 record = cms.string('ESWeightStripGroupsRcd'),
00040 tag = cms.string('ESWeightStripGroups_mc')
00041 ),
00042 cms.PSet(
00043 record = cms.string('ESIntercalibConstantsRcd'),
00044 tag = cms.string('ESIntercalibConstants_mc')
00045 ))
00046 )
00047
00048 process.dbCopy = cms.EDAnalyzer("ESDBCopy",
00049 timetype = cms.string('runnumber'),
00050 toCopy = cms.VPSet(
00051 cms.PSet(
00052 record = cms.string('ESADCToGeVConstantRcd'),
00053 container = cms.string('ESADCToGeVConstant')
00054 ),
00055 cms.PSet(
00056 record = cms.string('ESPedestalsRcd'),
00057 container = cms.string('ESPedestals')
00058 ),
00059 cms.PSet(
00060 record = cms.string('ESChannelStatusRcd'),
00061 container = cms.string('ESChannelStatus')
00062 ),
00063 cms.PSet(
00064 record = cms.string('ESWeightStripGroupsRcd'),
00065 container = cms.string('ESWeightStripGroups')
00066 ),
00067 cms.PSet(
00068 record = cms.string('ESIntercalibConstantsRcd'),
00069 container = cms.string('ESIntercalibConstants')
00070 ))
00071 )
00072
00073
00074
00075 process.p = cms.Path(process.dbCopy)
00076