CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyTrivialEnergyCorrectionObjectSpecific_cfg.py
Go to the documentation of this file.
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 = 'oracle://cms_orcon_prod/CMS_COND_31X_ECAL'
8 #process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
9 process.CondDBCommon.connect = 'sqlite_file:DB.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  cms.PSet(
27  record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
28  tag = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters_mc')
29  )
30  )
31 )
32 
33 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
34  timetype = cms.string('runnumber'),
35  toCopy = cms.VPSet(
36  cms.PSet(
37  record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
38  container = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters')
39  )
40  )
41 )
42 
43 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
44 
45 process.p = cms.Path(process.prod*process.dbCopy)