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 debugModules = cms.untracked.vstring(
'*'),
13 destinations = cms.untracked.vstring(
'cout')
16 process.source = cms.Source(
"EmptyIOVSource",
17 firstValue = cms.uint64(1),
18 lastValue = cms.uint64(1),
19 timetype = cms.string(
'runnumber'),
20 interval = cms.uint64(1)
23 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
25 toPut = cms.VPSet(cms.PSet(
26 record = cms.string(
'EcalPedestalsRcd'),
27 tag = cms.string(
'EcalPedestals_mc')
30 record = cms.string(
'EcalADCToGeVConstantRcd'),
31 tag = cms.string(
'EcalADCToGeVConstant_mc')
34 record = cms.string(
'EcalChannelStatusRcd'),
35 tag = cms.string(
'EcalChannelStatus_mc')
38 record = cms.string(
'EcalIntercalibConstantsRcd'),
39 tag = cms.string(
'EcalIntercalibConstants_mc')
42 record = cms.string(
'EcalIntercalibErrorsRcd'),
43 tag = cms.string(
'EcalIntercalibErrors_mc')
46 record = cms.string(
'EcalIntercalibConstantsMCRcd'),
47 tag = cms.string(
'EcalIntercalibConstantsMC_mc')
50 record = cms.string(
'EcalGainRatiosRcd'),
51 tag = cms.string(
'EcalGainRatios_mc')
54 record = cms.string(
'EcalWeightXtalGroupsRcd'),
55 tag = cms.string(
'EcalWeightXtalGroups_mc')
58 record = cms.string(
'EcalTBWeightsRcd'),
59 tag = cms.string(
'EcalTBWeights_mc')
62 record = cms.string(
'EcalClusterCrackCorrParametersRcd'),
63 tag = cms.string(
'EcalClusterCrackCorrParameters_mc')
66 record = cms.string(
'EcalClusterEnergyUncertaintyParametersRcd'),
67 tag = cms.string(
'EcalClusterEnergyUncertaintyParameters_mc')
70 record = cms.string(
'EcalClusterEnergyCorrectionParametersRcd'),
71 tag = cms.string(
'EcalClusterEnergyCorrectionParameters_mc')
74 record = cms.string(
'EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
75 tag = cms.string(
'EcalClusterEnergyCorrectionObjectSpecificParameters_mc')
78 record = cms.string(
'EcalTimeCalibConstantsRcd'),
79 tag = cms.string(
'EcalTimeCalibConstants_mc')
82 record = cms.string(
'EcalClusterLocalContCorrParametersRcd'),
83 tag = cms.string(
'EcalClusterLocalContCorrParameters_mc')
87 process.dbCopy = cms.EDAnalyzer(
"EcalDBCopy",
88 timetype = cms.string(
'runnumber'),
89 toCopy = cms.VPSet(cms.PSet(
90 record = cms.string(
'EcalPedestalsRcd'),
91 container = cms.string(
'EcalPedestals')
94 record = cms.string(
'EcalADCToGeVConstantRcd'),
95 container = cms.string(
'EcalADCToGeVConstant')
98 record = cms.string(
'EcalChannelStatusRcd'),
99 container = cms.string(
'EcalChannelStatus')
102 record = cms.string(
'EcalIntercalibConstantsRcd'),
103 container = cms.string(
'EcalIntercalibConstants')
106 record = cms.string(
'EcalIntercalibErrorsRcd'),
107 container = cms.string(
'EcalIntercalibErrors')
110 record = cms.string(
'EcalIntercalibConstantsMCRcd'),
111 container = cms.string(
'EcalIntercalibConstantsMC')
114 record = cms.string(
'EcalGainRatiosRcd'),
115 container = cms.string(
'EcalGainRatios')
118 record = cms.string(
'EcalWeightXtalGroupsRcd'),
119 container = cms.string(
'EcalWeightXtalGroups')
122 record = cms.string(
'EcalTBWeightsRcd'),
123 container = cms.string(
'EcalTBWeights')
126 record = cms.string(
'EcalClusterEnergyUncertaintyParametersRcd'),
127 container = cms.string(
'EcalClusterEnergyUncertaintyParameters')
130 record = cms.string(
'EcalClusterEnergyCorrectionParametersRcd'),
131 container = cms.string(
'EcalClusterEnergyCorrectionParameters')
134 record = cms.string(
'EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
135 container = cms.string(
'EcalClusterEnergyCorrectionObjectSpecificParameters')
138 record = cms.string(
'EcalClusterLocalContCorrParametersRcd'),
139 container = cms.string(
'EcalClusterLocalContCorrParameters')
142 record = cms.string(
'EcalTimeCalibConstantsRcd'),
143 container = cms.string(
'EcalTimeCalibConstants')
147 process.prod = cms.EDAnalyzer(
"EcalTrivialObjectAnalyzer")
149 process.p = cms.Path(process.prod*process.dbCopy)