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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("DUMP")
process.load("CondCore.DBCommon.CondDBSetup_cfi")
## specify which conditions you would like to dump to a text file in the "dump" vstring
process.prod = cms.EDAnalyzer("CastorDumpConditions",
dump = cms.untracked.vstring(
#'Pedestals',
# 'PedestalWidths',
# 'Gains',
# 'QIEData',
# 'ElectronicsMap',
# 'ChannelQuality',
# 'GainWidths',
# 'RecoParams',
'SaturationCorrs'
),
outFilePrefix = cms.untracked.string('DumpCastorCond')
)
process.source = cms.Source("EmptySource",
numberEventsInRun = cms.untracked.uint32(1),
firstRun = cms.untracked.uint32(1)
)
#process.CastorDbProducer = cms.ESProducer("CastorDbProducer")
#process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
#process.GlobalTag.globaltag = 'GR_R_61_V2::All'
process.es_pool = cms.ESSource(
"PoolDBESSource",
process.CondDBSetup,
timetype = cms.string('runnumber'),
connect = cms.string('sqlite_fle:CastorSaturationCorrs.db'),
authenticationMethod = cms.untracked.uint32(0),
toGet = cms.VPSet(
#cms.PSet(
# record = cms.string('CastorPedestalsRcd'),
# tag = cms.string('castor_pedestals_v1.0_test')
# ),
# cms.PSet(
# record = cms.string('CastorPedestalWidthsRcd'),
# tag = cms.string('castor_widths_v1.0_test')
# ),
# cms.PSet(
# record = cms.string('CastorGainsRcd'),
# tag = cms.string('castor_gains_v1.0_test')
# ),
# cms.PSet(
# record = cms.string('CastorGainWidthsRcd'),
# tag = cms.string('castor_gainwidths_v1.0_test')
# ),
# cms.PSet(
# record = cms.string('CastorQIEDataRcd'),
# tag = cms.string('castor_qie_v1.0_test')
# ),
# cms.PSet(
# record = cms.string('CastorChannelQualityRcd'),
# tag = cms.string('castor_channelstatus_v1.0_test')
# ),
# cms.PSet(
# record = cms.string('CastorElectronicsMapRcd'),
# tag = cms.string('castor_emap_v1.0_test')
# ),
# cms.PSet(
# record = cms.string('CastorRecoParamsRcd'),
# tag = cms.string('castor_recoparams_v1.00_test')
# ),
cms.PSet(
record = cms.string('CastorSaturationCorrsRcd'),
tag = cms.string('CastorSaturationCorrs_v1.00_offline')
)
)
)
#process.es_pool = cms.ESSource(
# "PoolDBESSource",
# process.CondDBSetup,
# timetype = cms.string('runnumber'),
# connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/CMS_COND_31X_HCAL'),
# authenticationMethod = cms.untracked.uint32(0),
# toGet = cms.VPSet(
# cms.PSet(
# record = cms.string('CastorPedestalsRcd'),
# tag = cms.string('castor_pedestals_v1.0_mc')
# ),
# cms.PSet(
# record = cms.string('CastorPedestalWidthsRcd'),
# tag = cms.string('castor_pedestalwidths_v1.0_mc')
# ),
# cms.PSet(
# record = cms.string('CastorGainsRcd'),
# tag = cms.string('castor_gains_v1.0_mc')
# ),
# cms.PSet(
# record = cms.string('CastorGainWidthsRcd'),
# tag = cms.string('castor_gainwidths_v1.0_mc')
# ),
# cms.PSet(
# record = cms.string('CastorQIEDataRcd'),
# tag = cms.string('castor_qie_v1.0')
# ),
# cms.PSet(
# record = cms.string('CastorChannelQualityRcd'),
# tag = cms.string('castor_channelquality_v1.0')
# ),
# cms.PSet(
# record = cms.string('CastorElectronicsMapRcd'),
# tag = cms.string('castor_emap_dcc_v1.0')
# ),
# cms.PSet(
# record = cms.string('CastorRecoParamsRcd'),
# tag = cms.string('castor_recoparams_v1.00_test')
# ),
# cms.PSet(
# record = cms.string('CastorSaturationCorrsRcd'),
# tag = cms.string('castor_saturationcorrs_v1.00_test')
# )
# )
#)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
process.p = cms.Path(process.prod)
|