Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:53

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.ESTrivialCondRetriever_cfi")
0005 
0006 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0007 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0008 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0009 process.CondDBCommon.connect = 'sqlite_file:DB.db'
0010 
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     cout = cms.untracked.PSet(
0016         enable = cms.untracked.bool(True)
0017     ),
0018     debugModules = cms.untracked.vstring('*')
0019 )
0020 
0021 process.source = cms.Source("EmptyIOVSource",
0022     firstValue = cms.uint64(1),
0023     lastValue = cms.uint64(1),
0024     timetype = cms.string('runnumber'),
0025     interval = cms.uint64(1)
0026 )
0027 
0028 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0029     process.CondDBCommon,
0030     toPut = cms.VPSet(
0031         cms.PSet(
0032             record = cms.string('ESADCToGeVConstantRcd'),
0033             tag = cms.string('ESADCToGeVConstant_mc')
0034         ),
0035         cms.PSet(
0036             record = cms.string('ESPedestalsRcd'),
0037             tag = cms.string('ESPedestals_mc')
0038         ),
0039         cms.PSet(
0040             record = cms.string('ESChannelStatusRcd'),
0041             tag = cms.string('EChannelStatus_mc')
0042         ),
0043         cms.PSet(
0044             record = cms.string('ESWeightStripGroupsRcd'),
0045             tag = cms.string('ESWeightStripGroups_mc')
0046         ),
0047         cms.PSet(
0048             record = cms.string('ESIntercalibConstantsRcd'),
0049             tag = cms.string('ESIntercalibConstants_mc')
0050         )) 
0051 )
0052 
0053 process.dbCopy = cms.EDAnalyzer("ESDBCopy",
0054     timetype = cms.string('runnumber'),
0055     toCopy = cms.VPSet(
0056         cms.PSet(
0057             record = cms.string('ESADCToGeVConstantRcd'),
0058             container = cms.string('ESADCToGeVConstant')
0059         ),
0060         cms.PSet(
0061             record = cms.string('ESPedestalsRcd'),
0062             container = cms.string('ESPedestals')
0063         ),
0064         cms.PSet(
0065             record = cms.string('ESChannelStatusRcd'),
0066             container = cms.string('ESChannelStatus')
0067         ),
0068         cms.PSet(
0069             record = cms.string('ESWeightStripGroupsRcd'),
0070             container = cms.string('ESWeightStripGroups')
0071         ),
0072         cms.PSet(
0073             record = cms.string('ESIntercalibConstantsRcd'),
0074             container = cms.string('ESIntercalibConstants')
0075         ))
0076 )
0077 
0078 
0079 
0080 process.p = cms.Path(process.dbCopy)
0081