Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("EcalSamplesCorrelation_cfi")
0005 
0006 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0007 process.CondDBCommon.connect = 'sqlite_file:EcalSamplesCorrelationFile.db'
0008 
0009 process.MessageLogger = cms.Service("MessageLogger",
0010   debugModules = cms.untracked.vstring('*'),
0011   destinations = cms.untracked.vstring('cout')
0012 )
0013 
0014 process.source = cms.Source("EmptyIOVSource",
0015   firstValue = cms.uint64(1),
0016   lastValue = cms.uint64(1),
0017   timetype = cms.string('runnumber'),
0018   interval = cms.uint64(1)
0019 )
0020 
0021 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0022   process.CondDBCommon,
0023   toPut = cms.VPSet(
0024     cms.PSet(
0025       record = cms.string('EcalSamplesCorrelationRcd'),
0026       tag = cms.string('EcalSamplesCorrelation_mc')
0027 #      tag = cms.string('EcalSamplesCorrelationFile')
0028     )
0029   )
0030 )
0031 
0032 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0033   timetype = cms.string('runnumber'),
0034   toCopy = cms.VPSet(
0035     cms.PSet(
0036       record = cms.string('EcalSamplesCorrelationRcd'),
0037       container = cms.string('EcalSamplesCorrelation')
0038     )
0039   )
0040 )
0041 
0042 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0043 
0044 process.p = cms.Path(process.prod*process.dbCopy)