File indexing completed on 2024-04-06 12:02:52
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005 process.EcalTrivialConditionRetriever.TotLumi = cms.untracked.double(1000.0)
0006 process.EcalTrivialConditionRetriever.InstLumi = cms.untracked.double(5.0e+34)
0007 process.EcalTrivialConditionRetriever.intercalibConstantsFile = cms.untracked.string("EcalIntercalibConstants_2011_V3_Bon_start_mc.xml")
0008 process.EcalTrivialConditionRetriever.intercalibConstantsMCFile = cms.untracked.string("EcalIntercalibConstantsMC_digi_2011_V3_Bon_mc.xml")
0009
0010
0011
0012 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0013
0014 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0015 process.CondDBCommon.connect = 'sqlite_file:DB.db'
0016
0017 process.MessageLogger = cms.Service("MessageLogger",
0018 cerr = cms.untracked.PSet(
0019 enable = cms.untracked.bool(False)
0020 ),
0021 cout = cms.untracked.PSet(
0022 enable = cms.untracked.bool(True)
0023 ),
0024 debugModules = cms.untracked.vstring('*')
0025 )
0026
0027 process.source = cms.Source("EmptyIOVSource",
0028 firstValue = cms.uint64(1),
0029 lastValue = cms.uint64(1),
0030 timetype = cms.string('runnumber'),
0031 interval = cms.uint64(1)
0032 )
0033
0034 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0035 process.CondDBCommon,
0036 toPut = cms.VPSet(cms.PSet(
0037 record = cms.string('EcalPedestalsRcd'),
0038 tag = cms.string('EcalPedestals_TL1000_IL5E34_mc')
0039 ),
0040 cms.PSet(
0041 record = cms.string('EcalLaserAPDPNRatiosRcd'),
0042 tag = cms.string('EcalLaserAPDPNRatios_TL1000_IL5E34_mc')
0043 ),
0044 cms.PSet(
0045 record = cms.string('EcalIntercalibConstantsRcd'),
0046 tag = cms.string('EcalIntercalibConstants_TL1000_IL5E34_mc')
0047 ) , cms.PSet(
0048 record = cms.string('EcalIntercalibConstantsMCRcd'),
0049 tag = cms.string('EcalIntercalibConstantsMC_TL1000_IL5E34_mc')
0050 )
0051 )
0052 )
0053
0054 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0055 timetype = cms.string('runnumber'),
0056 toCopy = cms.VPSet(cms.PSet(
0057 record = cms.string('EcalPedestalsRcd'),
0058 container = cms.string('EcalPedestals')
0059 ),
0060 cms.PSet(
0061 record = cms.string('EcalLaserAPDPNRatiosRcd'),
0062 container = cms.string('EcalLaserAPDPNRatios')
0063 ),
0064 cms.PSet(
0065 record = cms.string('EcalIntercalibConstantsRcd'),
0066 container = cms.string('EcalIntercalibConstants')
0067 ),
0068 cms.PSet(
0069 record = cms.string('EcalIntercalibConstantsMCRcd'),
0070 container = cms.string('EcalIntercalibConstantsMC')
0071 ))
0072 )
0073
0074
0075
0076 process.p = cms.Path(process.dbCopy)
0077