Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:54

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_orcon_prod/CMS_COND_31X_PRESHOWER'
0008 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0009 process.CondDBCommon.connect = 'sqlite_file:DB_DataHG.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 
0032     cms.PSet(
0033     record = cms.string('ESTBWeightsRcd'),
0034     tag = cms.string('ESTBWeights_DataHG')
0035     ),
0036 
0037     cms.PSet(
0038     record = cms.string('ESPedestalsRcd'),
0039     tag = cms.string('ESPedestals_DataHG')
0040     ),
0041     
0042     cms.PSet(
0043     record = cms.string('ESChannelStatusRcd'),
0044     tag = cms.string('ESChannelStatus_DataHG')
0045     )
0046     )    
0047                                           )
0048 
0049 process.dbCopy = cms.EDAnalyzer("ESDBCopy",
0050                                 timetype = cms.string('runnumber'),
0051                                 toCopy = cms.VPSet(
0052 
0053     cms.PSet(
0054     record = cms.string('ESTBWeightsRcd'),
0055     container = cms.string('ESTBWeights')
0056     ),
0057 
0058     cms.PSet(
0059     record = cms.string('ESPedestalsRcd'),
0060     container = cms.string('ESPedestals')
0061     ),
0062     
0063     cms.PSet(
0064     record = cms.string('ESChannelStatusRcd'),
0065     container = cms.string('ESChannelStatus')
0066     )
0067     )
0068                                 )
0069 
0070 process.p = cms.Path(process.dbCopy)
0071