CMS 3D CMS Logo

copyTrivialTPGChannelsStatus_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 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
10 
11 
12 
13 process.MessageLogger = cms.Service("MessageLogger",
14  debugModules = cms.untracked.vstring('*'),
15  destinations = cms.untracked.vstring('cout')
16 )
17 
18 process.source = cms.Source("EmptyIOVSource",
19  firstValue = cms.uint64(1),
20  lastValue = cms.uint64(1),
21  timetype = cms.string('runnumber'),
22  interval = cms.uint64(1)
23 )
24 
25 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
26  process.CondDBCommon,
27  toPut = cms.VPSet(cms.PSet(
28  record = cms.string('EcalTPGCrystalStatusRcd'),
29  tag = cms.string('EcalTPGCrystalStatus_v2_hlt')
30  ))
31 )
32 
33 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
34  timetype = cms.string('runnumber'),
35  toCopy = cms.VPSet(cms.PSet(
36  record = cms.string('EcalTPGCrystalStatusRcd'),
37  container = cms.string('EcalTPGCrystalStatus')
38  ))
39 )
40 
41 
42 
43 process.p = cms.Path(process.dbCopy)
44