1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"TEST")
4 process.load(
"CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
6 process.load(
"CondCore.DBCommon.CondDBCommon_cfi")
8 process.CondDBCommon.DBParameters.authenticationPath =
'/afs/cern.ch/cms/DB/conddb/'
9 process.CondDBCommon.connect =
'sqlite_file:DB.db'
11 process.MessageLogger = cms.Service(
"MessageLogger",
12 cerr = cms.untracked.PSet(
13 enable = cms.untracked.bool(
False)
15 cout = cms.untracked.PSet(
16 enable = cms.untracked.bool(
True)
18 debugModules = cms.untracked.vstring(
'*')
21 process.source = cms.Source(
"EmptyIOVSource",
22 firstValue = cms.uint64(1),
23 lastValue = cms.uint64(1),
24 timetype = cms.string(
'runnumber'),
25 interval = cms.uint64(1)
28 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
30 toPut = cms.VPSet(cms.PSet(
31 record = cms.string(
'EcalPedestalsRcd'),
32 tag = cms.string(
'EcalPedestals_mc')
35 record = cms.string(
'EcalADCToGeVConstantRcd'),
36 tag = cms.string(
'EcalADCToGeVConstant_mc')
39 record = cms.string(
'EcalChannelStatusRcd'),
40 tag = cms.string(
'EcalChannelStatus_mc')
43 record = cms.string(
'EcalIntercalibConstantsRcd'),
44 tag = cms.string(
'EcalIntercalibConstants_mc')
47 record = cms.string(
'EcalIntercalibErrorsRcd'),
48 tag = cms.string(
'EcalIntercalibErrors_mc')
51 record = cms.string(
'EcalIntercalibConstantsMCRcd'),
52 tag = cms.string(
'EcalIntercalibConstantsMC_mc')
55 record = cms.string(
'EcalGainRatiosRcd'),
56 tag = cms.string(
'EcalGainRatios_mc')
59 record = cms.string(
'EcalWeightXtalGroupsRcd'),
60 tag = cms.string(
'EcalWeightXtalGroups_mc')
63 record = cms.string(
'EcalTBWeightsRcd'),
64 tag = cms.string(
'EcalTBWeights_mc')
67 record = cms.string(
'EcalClusterCrackCorrParametersRcd'),
68 tag = cms.string(
'EcalClusterCrackCorrParameters_mc')
71 record = cms.string(
'EcalClusterEnergyUncertaintyParametersRcd'),
72 tag = cms.string(
'EcalClusterEnergyUncertaintyParameters_mc')
75 record = cms.string(
'EcalClusterEnergyCorrectionParametersRcd'),
76 tag = cms.string(
'EcalClusterEnergyCorrectionParameters_mc')
79 record = cms.string(
'EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
80 tag = cms.string(
'EcalClusterEnergyCorrectionObjectSpecificParameters_mc')
83 record = cms.string(
'EcalTimeCalibConstantsRcd'),
84 tag = cms.string(
'EcalTimeCalibConstants_mc')
87 record = cms.string(
'EcalClusterLocalContCorrParametersRcd'),
88 tag = cms.string(
'EcalClusterLocalContCorrParameters_mc')
92 process.dbCopy = cms.EDAnalyzer(
"EcalDBCopy",
93 timetype = cms.string(
'runnumber'),
94 toCopy = cms.VPSet(cms.PSet(
95 record = cms.string(
'EcalPedestalsRcd'),
96 container = cms.string(
'EcalPedestals')
99 record = cms.string(
'EcalADCToGeVConstantRcd'),
100 container = cms.string(
'EcalADCToGeVConstant')
103 record = cms.string(
'EcalChannelStatusRcd'),
104 container = cms.string(
'EcalChannelStatus')
107 record = cms.string(
'EcalIntercalibConstantsRcd'),
108 container = cms.string(
'EcalIntercalibConstants')
111 record = cms.string(
'EcalIntercalibErrorsRcd'),
112 container = cms.string(
'EcalIntercalibErrors')
115 record = cms.string(
'EcalIntercalibConstantsMCRcd'),
116 container = cms.string(
'EcalIntercalibConstantsMC')
119 record = cms.string(
'EcalGainRatiosRcd'),
120 container = cms.string(
'EcalGainRatios')
123 record = cms.string(
'EcalWeightXtalGroupsRcd'),
124 container = cms.string(
'EcalWeightXtalGroups')
127 record = cms.string(
'EcalTBWeightsRcd'),
128 container = cms.string(
'EcalTBWeights')
131 record = cms.string(
'EcalClusterEnergyUncertaintyParametersRcd'),
132 container = cms.string(
'EcalClusterEnergyUncertaintyParameters')
135 record = cms.string(
'EcalClusterEnergyCorrectionParametersRcd'),
136 container = cms.string(
'EcalClusterEnergyCorrectionParameters')
139 record = cms.string(
'EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
140 container = cms.string(
'EcalClusterEnergyCorrectionObjectSpecificParameters')
143 record = cms.string(
'EcalClusterLocalContCorrParametersRcd'),
144 container = cms.string(
'EcalClusterLocalContCorrParameters')
147 record = cms.string(
'EcalTimeCalibConstantsRcd'),
148 container = cms.string(
'EcalTimeCalibConstants')
152 process.prod = cms.EDAnalyzer(
"EcalTrivialObjectAnalyzer")
154 process.p = cms.Path(process.prod*process.dbCopy)