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
82
83
84
|
# The following comments couldn't be translated into the new config version:
# upload to database
#string timetype = "timestamp"
import FWCore.ParameterSet.Config as cms
process = cms.Process("Reader")
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
debugModules = cms.untracked.vstring('BackPlaneCorrectionReaderSummary'),
files = cms.untracked.PSet(
BackPlaneCorrectionReader = cms.untracked.PSet(
)
),
threshold = cms.untracked.string('DEBUG')
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
process.source = cms.Source("EmptySource",
numberEventsInRun = cms.untracked.uint32(1),
firstRun = cms.untracked.uint32(200000)
)
#DBESSource
process.poolDBESSource = cms.ESSource("PoolDBESSource",
DBParameters = cms.PSet(
messageLevel = cms.untracked.int32(2),
authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
),
connect = cms.string('sqlite_file:dbfile.db'),
toGet = cms.VPSet(
cms.PSet(
record = cms.string('SiStripBackPlaneCorrectionRcd'),
tag = cms.string('SiStripBackPlaneCorrection_deco_31X'),
label = cms.untracked.string('deconvolution')
),
cms.PSet(
record = cms.string('SiStripBackPlaneCorrectionRcd'),
tag = cms.string('SiStripBackPlaneCorrection_peak_31X'),
label = cms.untracked.string('peak')
),
)
)
#Latency producer
process.load("CalibTracker.SiStripESProducers.fake.SiStripLatencyFakeESSource_cfi")
from CalibTracker.SiStripESProducers.fake.SiStripLatencyFakeESSource_cfi import siStripLatencyFakeESSource
#siStripLatencyFakeESSource.latency = 255
#siStripLatencyFakeESSource.mode = 0
siStripLatencyFakeESSource.latency = 143
siStripLatencyFakeESSource.mode = 47
# siStripLatencyFakeESSource.latency = 146
# siStripLatencyFakeESSource.mode = 37
#Dependent ESSource
process.siStripBackPlaneCorrectionDepESProducer = cms.ESProducer("SiStripBackPlaneCorrectionDepESProducer",
LatencyRecord = cms.PSet(
record = cms.string('SiStripLatencyRcd'),
label = cms.untracked.string('')
),
BackPlaneCorrectionPeakMode = cms.PSet(
record = cms.string('SiStripBackPlaneCorrectionRcd'),
label = cms.untracked.string('peak')
),
BackPlaneCorrectionDeconvMode = cms.PSet(
record = cms.string('SiStripBackPlaneCorrectionRcd'),
label = cms.untracked.string('deconvolution')
)
)
process.reader = cms.EDAnalyzer("SiStripBackPlaneCorrectionDepDummyPrinter")
process.p1 = cms.Path(process.reader)
|