CMS 3D CMS Logo

copyTrivialES_sqlite_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.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  cerr = cms.untracked.PSet(
13  enable = cms.untracked.bool(False)
14  ),
15  cout = cms.untracked.PSet(
16  enable = cms.untracked.bool(True)
17  ),
18  debugModules = cms.untracked.vstring('*')
19 )
20 
21 process.source = cms.Source("EmptyIOVSource",
22  firstValue = cms.uint64(1),
23  lastValue = cms.uint64(1),
24  timetype = cms.string('runnumber'),
25  interval = cms.uint64(1)
26 )
27 
28 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
29  process.CondDBCommon,
30  toPut = cms.VPSet(
31  cms.PSet(
32  record = cms.string('ESADCToGeVConstantRcd'),
33  tag = cms.string('ESADCToGeVConstant_mc')
34  ),
35  cms.PSet(
36  record = cms.string('ESPedestalsRcd'),
37  tag = cms.string('ESPedestals_mc')
38  ),
39  cms.PSet(
40  record = cms.string('ESChannelStatusRcd'),
41  tag = cms.string('EChannelStatus_mc')
42  ),
43  cms.PSet(
44  record = cms.string('ESWeightStripGroupsRcd'),
45  tag = cms.string('ESWeightStripGroups_mc')
46  ),
47  cms.PSet(
48  record = cms.string('ESIntercalibConstantsRcd'),
49  tag = cms.string('ESIntercalibConstants_mc')
50  ))
51 )
52 
53 process.dbCopy = cms.EDAnalyzer("ESDBCopy",
54  timetype = cms.string('runnumber'),
55  toCopy = cms.VPSet(
56  cms.PSet(
57  record = cms.string('ESADCToGeVConstantRcd'),
58  container = cms.string('ESADCToGeVConstant')
59  ),
60  cms.PSet(
61  record = cms.string('ESPedestalsRcd'),
62  container = cms.string('ESPedestals')
63  ),
64  cms.PSet(
65  record = cms.string('ESChannelStatusRcd'),
66  container = cms.string('ESChannelStatus')
67  ),
68  cms.PSet(
69  record = cms.string('ESWeightStripGroupsRcd'),
70  container = cms.string('ESWeightStripGroups')
71  ),
72  cms.PSet(
73  record = cms.string('ESIntercalibConstantsRcd'),
74  container = cms.string('ESIntercalibConstants')
75  ))
76 )
77 
78 
79 
80 process.p = cms.Path(process.dbCopy)
81