Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 #process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 process.load("CondCore.CondDB.CondDB_cfi")
0006 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_39X_PRESHOWER'
0007 #process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0008 process.CondDB.connect = 'sqlite_file:ESMissingEnergyCalibration_LG.db'
0009 
0010 process.MessageLogger = cms.Service("MessageLogger",
0011     cerr = cms.untracked.PSet(
0012         enable = cms.untracked.bool(False)
0013     ),
0014     cout = cms.untracked.PSet(
0015         enable = cms.untracked.bool(True)
0016     ),
0017     debugModules = cms.untracked.vstring('*')
0018 )
0019 
0020 process.source = cms.Source("EmptyIOVSource",
0021                             firstValue = cms.uint64(1),
0022                             lastValue = cms.uint64(1),
0023                             timetype = cms.string('runnumber'),
0024                             interval = cms.uint64(1)
0025                             )
0026 
0027 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0028                                           process.CondDB,
0029                                           timetype = cms.untracked.string('runnumber'),
0030                                           toPut = cms.VPSet(cms.PSet(
0031     # weights
0032     record = cms.string('ESMissingEnergyCalibrationRcd'),
0033     tag = cms.string('ESMissingEnergyCalibration_LG')
0034 
0035     )))
0036 
0037 process.ecalModule = cms.EDAnalyzer("StoreESCondition",
0038                                     logfile = cms.string('./logfile.log'),
0039                                     gain = cms.uint32(1),
0040                                     toPut = cms.VPSet(cms.PSet(
0041 
0042     # weights
0043     conditionType = cms.untracked.string('ESMissingEnergyCalibration'),
0044     since = cms.untracked.uint32(1),
0045     inputFile = cms.untracked.string('CondTools/Ecal/test/preshower/ESMissingEnergyCalibration_LG.txt')
0046     
0047     )))
0048     
0049 process.p = cms.Path(process.ecalModule)
0050     
0051     
0052