Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")
process.load("EcalTrivialAlpha_cfi")

process.load("CondCore.DBCommon.CondDBCommon_cfi")
#process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
process.CondDBCommon.connect = 'sqlite_file:LaserAlphasDB.db'

process.MessageLogger = cms.Service("MessageLogger",
  debugModules = cms.untracked.vstring('*'),
  destinations = cms.untracked.vstring('cout')
)

process.source = cms.Source("EmptyIOVSource",
  firstValue = cms.uint64(1),
  lastValue = cms.uint64(1),
  timetype = cms.string('runnumber'),
  interval = cms.uint64(1)
)

process.PoolDBOutputService = cms.Service("PoolDBOutputService",
  process.CondDBCommon,
  timetype = cms.untracked.string('timestamp'),
  toPut = cms.VPSet(
    cms.PSet(
      record = cms.string('EcalLaserAlphasRcd'),
      tag = cms.string('EcalLaserAlphas_test_prompt')
    ), 
  )
)


#    timetype = cms.string('timestamp'),

process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
  timetype = cms.string('timestamp'),
  toCopy = cms.VPSet(
    cms.PSet(
      record = cms.string('EcalLaserAlphasRcd'),
      container = cms.string('EcalLaserAlphas')
    ), 
  )
)

process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")

process.p = cms.Path(process.prod*process.dbCopy)