CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyTrivialES_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_orcoff_prep/CMS_COND_ECAL'
8 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/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('ESADCToGeVConstantRcd'),
28  tag = cms.string('ESADCToGeVConstant_mc')
29  ),
30  cms.PSet(
31  record = cms.string('ESPedestalsRcd'),
32  tag = cms.string('ESPedestals_mc')
33  ),
34  cms.PSet(
35  record = cms.string('ESChannelStatusRcd'),
36  tag = cms.string('EChannelStatus_mc')
37  ),
38  cms.PSet(
39  record = cms.string('ESWeightStripGroupsRcd'),
40  tag = cms.string('ESWeightStripGroups_mc')
41  ),
42  cms.PSet(
43  record = cms.string('ESIntercalibConstantsRcd'),
44  tag = cms.string('ESIntercalibConstants_mc')
45  ))
46 )
47 
48 process.dbCopy = cms.EDAnalyzer("ESDBCopy",
49  timetype = cms.string('runnumber'),
50  toCopy = cms.VPSet(
51  cms.PSet(
52  record = cms.string('ESADCToGeVConstantRcd'),
53  container = cms.string('ESADCToGeVConstant')
54  ),
55  cms.PSet(
56  record = cms.string('ESPedestalsRcd'),
57  container = cms.string('ESPedestals')
58  ),
59  cms.PSet(
60  record = cms.string('ESChannelStatusRcd'),
61  container = cms.string('ESChannelStatus')
62  ),
63  cms.PSet(
64  record = cms.string('ESWeightStripGroupsRcd'),
65  container = cms.string('ESWeightStripGroups')
66  ),
67  cms.PSet(
68  record = cms.string('ESIntercalibConstantsRcd'),
69  container = cms.string('ESIntercalibConstants')
70  ))
71 )
72 
73 
74 
75 process.p = cms.Path(process.dbCopy)
76