CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/CondTools/Ecal/python/copyTrivial_Laser_hlt.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("TEST")
00004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
00005 process.load("EcalTrivialAlpha_cfi")
00006 
00007 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00008 process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_43X_ECAL'
00009 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
00010 #process.CondDBCommon.connect = 'sqlite_file:DB.db'
00011 
00012 process.MessageLogger = cms.Service("MessageLogger",
00013     debugModules = cms.untracked.vstring('*'),
00014     destinations = cms.untracked.vstring('cout')
00015 )
00016 
00017 process.source = cms.Source("EmptyIOVSource",
00018     firstValue = cms.uint64(1),
00019     lastValue = cms.uint64(1),
00020     timetype = cms.string('runnumber'),
00021     interval = cms.uint64(1)
00022 )
00023 
00024 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00025   process.CondDBCommon,
00026   timetype = cms.untracked.string('runnumber'),
00027   toPut = cms.VPSet(
00028     cms.PSet(
00029       record = cms.string('EcalLaserAlphasRcd'),
00030       tag = cms.string('EcalLaserAlphas_v2_hlt')
00031     ), 
00032     cms.PSet(
00033       record = cms.string('EcalLaserAPDPNRatiosRcd'),
00034       tag = cms.string('EcalLaserAPDPNRatios_v2_hlt')
00035     ), 
00036     cms.PSet(
00037       record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
00038       tag = cms.string('EcalLaserAPDPNRatiosRef_v2_hlt')
00039     )
00040   )
00041 )
00042 
00043 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
00044   timetype = cms.string('runnumber'),
00045   toCopy = cms.VPSet(
00046     cms.PSet(
00047       record = cms.string('EcalLaserAlphasRcd'),
00048       container = cms.string('EcalLaserAlphas')
00049     ), 
00050     cms.PSet(
00051       record = cms.string('EcalLaserAPDPNRatiosRcd'),
00052       container = cms.string('EcalLaserAPDPNRatios')
00053     ), 
00054     cms.PSet(
00055       record = cms.string('EcalLaserAPDPNRatiosRefRcd'),
00056       container = cms.string('EcalLaserAPDPNRatiosRef')
00057     )
00058   )
00059 )
00060 
00061 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
00062 
00063 process.p = cms.Path(process.prod*process.dbCopy)
00064