CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyTrivialES_DataHG_sqlite_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("TEST")
4 process.load("CalibCalorimetry.EcalTrivialCondModules.ESTrivialCondRetriever_cfi")
5 
6 process.load("CondCore.DBCommon.CondDBCommon_cfi")
7 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_31X_PRESHOWER'
8 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
9 process.CondDBCommon.connect = 'sqlite_file:DB_DataHG.db'
10 
11 process.MessageLogger = cms.Service("MessageLogger",
12  debugModules = cms.untracked.vstring('*'),
13  destinations = cms.untracked.vstring('cout')
14 )
15 
16 process.source = cms.Source("EmptyIOVSource",
17  firstValue = cms.uint64(1),
18  lastValue = cms.uint64(1),
19  timetype = cms.string('runnumber'),
20  interval = cms.uint64(1)
21 )
22 
23 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
24  process.CondDBCommon,
25  toPut = cms.VPSet(
26 
27  cms.PSet(
28  record = cms.string('ESTBWeightsRcd'),
29  tag = cms.string('ESTBWeights_DataHG')
30  ),
31 
32  cms.PSet(
33  record = cms.string('ESPedestalsRcd'),
34  tag = cms.string('ESPedestals_DataHG')
35  ),
36 
37  cms.PSet(
38  record = cms.string('ESChannelStatusRcd'),
39  tag = cms.string('ESChannelStatus_DataHG')
40  )
41  )
42  )
43 
44 process.dbCopy = cms.EDAnalyzer("ESDBCopy",
45  timetype = cms.string('runnumber'),
46  toCopy = cms.VPSet(
47 
48  cms.PSet(
49  record = cms.string('ESTBWeightsRcd'),
50  container = cms.string('ESTBWeights')
51  ),
52 
53  cms.PSet(
54  record = cms.string('ESPedestalsRcd'),
55  container = cms.string('ESPedestals')
56  ),
57 
58  cms.PSet(
59  record = cms.string('ESChannelStatusRcd'),
60  container = cms.string('ESChannelStatus')
61  )
62  )
63  )
64 
65 process.p = cms.Path(process.dbCopy)
66