1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("CalibCalorimetry.EcalTrivialCondModules.ESTrivialCondRetriever_cfi")
process.load("CondCore.DBCommon.CondDBCommon_cfi")
#process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
process.CondDBCommon.connect = 'sqlite_file:DB.db'
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True)
),
debugModules = cms.untracked.vstring('*')
)
process.source = cms.Source("EmptyIOVSource",
firstValue = cms.uint64(1),
lastValue = cms.uint64(1),
timetype = cms.string('runnumber'),
interval = cms.uint64(1)
)
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
process.CondDBCommon,
toPut = cms.VPSet(
cms.PSet(
record = cms.string('ESADCToGeVConstantRcd'),
tag = cms.string('ESADCToGeVConstant_mc')
),
cms.PSet(
record = cms.string('ESPedestalsRcd'),
tag = cms.string('ESPedestals_mc')
),
cms.PSet(
record = cms.string('ESChannelStatusRcd'),
tag = cms.string('EChannelStatus_mc')
),
cms.PSet(
record = cms.string('ESWeightStripGroupsRcd'),
tag = cms.string('ESWeightStripGroups_mc')
),
cms.PSet(
record = cms.string('ESIntercalibConstantsRcd'),
tag = cms.string('ESIntercalibConstants_mc')
))
)
process.dbCopy = cms.EDAnalyzer("ESDBCopy",
timetype = cms.string('runnumber'),
toCopy = cms.VPSet(
cms.PSet(
record = cms.string('ESADCToGeVConstantRcd'),
container = cms.string('ESADCToGeVConstant')
),
cms.PSet(
record = cms.string('ESPedestalsRcd'),
container = cms.string('ESPedestals')
),
cms.PSet(
record = cms.string('ESChannelStatusRcd'),
container = cms.string('ESChannelStatus')
),
cms.PSet(
record = cms.string('ESWeightStripGroupsRcd'),
container = cms.string('ESWeightStripGroups')
),
cms.PSet(
record = cms.string('ESIntercalibConstantsRcd'),
container = cms.string('ESIntercalibConstants')
))
)
process.p = cms.Path(process.dbCopy)
|