CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyTrivialChannelsStatus_sqlit_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("TEST")
4 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
5 
6 process.load("CondCore.DBCommon.CondDBCommon_cfi")
7 process.CondDBCommon.connect = 'sqlite_file:DB.db'
8 
9 
10 process.MessageLogger = cms.Service("MessageLogger",
11  debugModules = cms.untracked.vstring('*'),
12  destinations = cms.untracked.vstring('cout')
13 )
14 
15 process.source = cms.Source("EmptyIOVSource",
16  firstValue = cms.uint64(1),
17  lastValue = cms.uint64(1),
18  timetype = cms.string('runnumber'),
19  interval = cms.uint64(1)
20 )
21 
22 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
23  process.CondDBCommon,
24  toPut = cms.VPSet(cms.PSet(
25  record = cms.string('EcalChannelStatusRcd'),
26  tag = cms.string('EcalChannelStatus_online')
27  ))
28 )
29 
30 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
31  timetype = cms.string('runnumber'),
32  toCopy = cms.VPSet(cms.PSet(
33  record = cms.string('EcalChannelStatusRcd'),
34  container = cms.string('EcalChannelStatus')
35  ))
36 )
37 
38 
39 
40 process.p = cms.Path(process.dbCopy)
41