Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("EcalTrivialAlpha_cfi")
0005 
0006 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0007 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0008 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0009 process.CondDBCommon.connect = 'sqlite_file:LaserAlphasDB.db'
0010 
0011 process.MessageLogger = cms.Service("MessageLogger",
0012   debugModules = cms.untracked.vstring('*'),
0013   destinations = cms.untracked.vstring('cout')
0014 )
0015 
0016 process.source = cms.Source("EmptyIOVSource",
0017   firstValue = cms.uint64(1),
0018   lastValue = cms.uint64(1),
0019   timetype = cms.string('runnumber'),
0020   interval = cms.uint64(1)
0021 )
0022 
0023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0024   process.CondDBCommon,
0025   timetype = cms.untracked.string('timestamp'),
0026   toPut = cms.VPSet(
0027     cms.PSet(
0028       record = cms.string('EcalLaserAlphasRcd'),
0029       tag = cms.string('EcalLaserAlphas_test_prompt')
0030     ), 
0031   )
0032 )
0033 
0034 
0035 #    timetype = cms.string('timestamp'),
0036 
0037 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0038   timetype = cms.string('timestamp'),
0039   toCopy = cms.VPSet(
0040     cms.PSet(
0041       record = cms.string('EcalLaserAlphasRcd'),
0042       container = cms.string('EcalLaserAlphas')
0043     ), 
0044   )
0045 )
0046 
0047 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0048 
0049 process.p = cms.Path(process.prod*process.dbCopy)