Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:05

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:ESIntercalibConstants_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     # MIP constants
0032     record = cms.string('ESIntercalibConstantsRcd'),
0033     # ESIntercalibConstants_V01_offline is used up to May 2012
0034     tag = cms.string('ESIntercalibConstants_LG') # this is just a test tag for 2012D
0035     
0036     )))
0037 
0038 process.ecalModule = cms.EDAnalyzer("StoreESCondition",
0039                                     #gain = cms.uint32(2), # HG
0040                                     gain = cms.uint32(1), # LG
0041                                     logfile = cms.string('./logfile.log'),
0042                                     toPut = cms.VPSet(cms.PSet(
0043 
0044     # MIP constants 
0045     conditionType = cms.untracked.string('ESIntercalibConstants'),
0046     #inputFile = cms.untracked.string('CondTools/Ecal/test/preshower/calibration_constant_LG_Run2012A.txt')
0047     # 2012/11/28 LG 2012 D for test
0048     since = cms.untracked.uint32(1),
0049     inputFile = cms.untracked.string('CondTools/Ecal/test/preshower/ESIntercalibConstants_LG.txt')
0050     )))
0051     
0052 process.p = cms.Path(process.ecalModule)
0053     
0054     
0055