Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-16 03:23:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ProcessOne")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 process.CondDBCommon.connect = 'sqlite_file:DB.db'
0006 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb'
0007 
0008 process.MessageLogger = cms.Service("MessageLogger",
0009     cerr = cms.untracked.PSet(
0010         enable = cms.untracked.bool(False)
0011     ),
0012     cout = cms.untracked.PSet(
0013         enable = cms.untracked.bool(True)
0014     ),
0015     debugModules = cms.untracked.vstring('*')
0016 )
0017 
0018 process.source = cms.Source("EmptyIOVSource",
0019                                 firstValue = cms.uint64(1),
0020                                 lastValue = cms.uint64(1),
0021                                 timetype = cms.string('runnumber'),
0022                                 interval = cms.uint64(1)
0023                             )
0024 
0025 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0026     process.CondDBCommon,
0027     toPut = cms.VPSet(cms.PSet(
0028         record = cms.string('EcalIntercalibConstantsRcd'),
0029         tag = cms.string('EcalIntercalibConstants_ideal')
0030     ))
0031 )
0032 
0033 process.CaloMiscalibTools = cms.ESSource("CaloMiscalibTools",
0034     fileNameBarrel = cms.untracked.string('EcalIntercalibConstants_EB_ideal.xml'),
0035     fileNameEndcap = cms.untracked.string('EcalIntercalibConstants_EE_ideal.xml')
0036 )
0037 
0038 process.prefer("CaloMiscalibTools")
0039 process.WriteInDB = cms.EDAnalyzer("WriteEcalMiscalibConstants",
0040     NewTagRequest = cms.string('EcalIntercalibConstantsRcd')
0041 )
0042 
0043 process.p = cms.Path(process.WriteInDB)
0044 
0045