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
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('INFO')
)
)
process.load("CondCore.DBCommon.CondDBCommon_cfi")
process.CondDBCommon.connect = cms.string('sqlite_file:testExample.db')
process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
process.source = cms.Source("EmptyIOVSource",
timetype = cms.string('runnumber'),
firstValue = cms.uint64(1),
lastValue = cms.uint64(1),
interval = cms.uint64(1)
)
process.es_ascii = cms.ESSource("HcalTextCalibrations",
input = cms.VPSet(cms.PSet(
object = cms.string('PedestalWidths'),
file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_widths_fC_v6_mc.txt')
))
)
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
process.CondDBCommon,
timetype = cms.untracked.string('runnumber'),
logconnect= cms.untracked.string('sqlite_file:log.db'),
toPut = cms.VPSet(cms.PSet(
record = cms.string('HcalPedestalWidthsRcd'),
tag = cms.string('hcal_widths_fC_v6_mc')
))
)
process.mytest = cms.EDAnalyzer("HcalPedestalWidthsPopConAnalyzer",
record = cms.string('HcalPedestalWidthsRcd'),
loggingOn= cms.untracked.bool(True),
SinceAppendMode=cms.bool(True),
Source=cms.PSet(
# firstSince=cms.untracked.double(300)
IOVRun=cms.untracked.uint32(1)
)
)
process.p = cms.Path(process.mytest)
|