Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005 process.EcalTrivialConditionRetriever.laserAPDPNTime1 = cms.untracked.string('0')
0006 process.EcalTrivialConditionRetriever.laserAPDPNTime2 = cms.untracked.string('1')
0007 process.EcalTrivialConditionRetriever.laserAPDPNTime3 = cms.untracked.string('2')
0008 
0009 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0010 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0011 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0012 process.CondDBCommon.connect = 'sqlite_file:DB.db'
0013 
0014 process.MessageLogger = cms.Service("MessageLogger",
0015     cerr = cms.untracked.PSet(
0016         enable = cms.untracked.bool(False)
0017     ),
0018     cout = cms.untracked.PSet(
0019         enable = cms.untracked.bool(True)
0020     ),
0021     debugModules = cms.untracked.vstring('*')
0022 )
0023 
0024 process.source = cms.Source("EmptyIOVSource",
0025     firstValue = cms.uint64(1),
0026     lastValue = cms.uint64(1),
0027     timetype = cms.string('runnumber'),
0028     interval = cms.uint64(1)
0029 )
0030 
0031 
0032 #    timetype = cms.untracked.string('timestamp'),
0033 
0034 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0035     process.CondDBCommon,
0036     timetype = cms.untracked.string('timestamp'),
0037     toPut = cms.VPSet(
0038         cms.PSet(
0039             record = cms.string('EcalLaserAlphasRcd'),
0040             tag = cms.string('EcalLaserAlphas_mc')
0041         ), 
0042         cms.PSet(
0043             record = cms.string('EcalLaserAPDPNRatiosRcd'),
0044             tag = cms.string('EcalLaserAPDPNRatios_mc')
0045         ), 
0046         cms.PSet(
0047             record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
0048             tag = cms.string('EcalLaserAPDPNRatiosRef_mc')
0049         ))
0050 )
0051 
0052 
0053 #    timetype = cms.string('timestamp'),
0054 
0055 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0056     timetype = cms.string('timestamp'),
0057     toCopy = cms.VPSet(
0058         cms.PSet(
0059             record = cms.string('EcalLaserAlphasRcd'),
0060             container = cms.string('EcalLaserAlphas')
0061         ), 
0062         cms.PSet(
0063             record = cms.string('EcalLaserAPDPNRatiosRcd'),
0064             container = cms.string('EcalLaserAPDPNRatios')
0065         ), 
0066         cms.PSet(
0067             record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
0068             container = cms.string('EcalLaserAPDPNRatiosRef')
0069         ))
0070 )
0071 
0072 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0073 
0074 process.p = cms.Path(process.prod*process.dbCopy)
0075