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