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
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("DTCCablingMapProducer")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
# Load CondDB service
process.load("CondCore.CondDB.CondDB_cfi")
# output database (in this case local sqlite file)
process.CondDB.connect = 'sqlite_file:OuterTrackerDTCCablingMap_dummytest.db'
# A data source must always be defined. We don't need it, so here's a dummy one.
process.source = cms.Source("EmptyIOVSource",
timetype = cms.string('runnumber'),
firstValue = cms.uint64(1),
lastValue = cms.uint64(1),
interval = cms.uint64(1)
)
# We define the output service.
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
process.CondDB,
timetype = cms.untracked.string('runnumber'),
toPut = cms.VPSet(cms.PSet(
record = cms.string('OuterTrackerDTCCablingMapRcd'),
tag = cms.string('DTCCablingMapProducerUserRun')
))
)
process.otdtccablingmap_producer = cms.EDAnalyzer("DTCCablingMapTestProducer",
record = cms.string('OuterTrackerDTCCablingMapRcd'),
#loggingOn= cms.untracked.bool(True),
#SinceAppendMode=cms.bool(True),
#Source=cms.PSet(
#IOVRun=cms.untracked.uint32(1)
#)
)
process.path = cms.Path(process.otdtccablingmap_producer)
|