CMS 3D CMS Logo

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  cerr = cms.untracked.PSet(
12  enable = cms.untracked.bool(False)
13  ),
14  cout = cms.untracked.PSet(
15  enable = cms.untracked.bool(True)
16  ),
17  debugModules = cms.untracked.vstring('*')
18 )
19 
20 process.source = cms.Source("EmptyIOVSource",
21  firstValue = cms.uint64(1),
22  lastValue = cms.uint64(1),
23  timetype = cms.string('runnumber'),
24  interval = cms.uint64(1)
25 )
26 
27 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
28  process.CondDBCommon,
29  toPut = cms.VPSet(cms.PSet(
30  record = cms.string('EcalChannelStatusRcd'),
31  tag = cms.string('EcalChannelStatus_online')
32  ))
33 )
34 
35 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
36  timetype = cms.string('runnumber'),
37  toCopy = cms.VPSet(cms.PSet(
38  record = cms.string('EcalChannelStatusRcd'),
39  container = cms.string('EcalChannelStatus')
40  ))
41 )
42 
43 
44 
45 process.p = cms.Path(process.dbCopy)
46