CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
fill_test_db_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("TEST")
4 
5 process.load("CondCore.DBCommon.CondDBCommon_cfi")
6 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
7 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
8 process.CondDBCommon.connect = 'sqlite_file:DB.db'
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 
23 
24 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
25  process.CondDBCommon,
26  toPut = cms.VPSet(cms.PSet(
27  record = cms.string('EcalPedestalsRcd'),
28  tag = cms.string('EcalPedestals_test')
29  ))
30 )
31 
32 process.dbCopy = cms.EDAnalyzer("EcalTestDevDB",
33  lastRun = cms.string('5'),
34  timetype = cms.string('runnumber'),
35  firstRun = cms.string('1'),
36  toCopy = cms.VPSet(cms.PSet(
37  record = cms.string('EcalPedestalsRcd'),
38  container = cms.string('EcalPedestals')
39  )),
40  interval = cms.string('1')
41 )
42 
43 process.p = cms.Path(process.dbCopy)
44 
45