Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005 
0006 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0007 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0008 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0009 process.CondDBCommon.connect = 'sqlite_file:DB.db'
0010 
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     cout = cms.untracked.PSet(
0016         enable = cms.untracked.bool(True)
0017     ),
0018     debugModules = cms.untracked.vstring('*')
0019 )
0020 
0021 process.source = cms.Source("EmptyIOVSource",
0022     firstValue = cms.uint64(1),
0023     lastValue = cms.uint64(1),
0024     timetype = cms.string('runnumber'),
0025     interval = cms.uint64(1)
0026 )
0027 
0028 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0029     process.CondDBCommon,
0030     toPut = cms.VPSet(cms.PSet(
0031         record = cms.string('EcalPedestalsRcd'),
0032         tag = cms.string('EcalPedestals_mc')
0033     ), 
0034         cms.PSet(
0035             record = cms.string('EcalADCToGeVConstantRcd'),
0036             tag = cms.string('EcalADCToGeVConstant_mc')
0037         ), 
0038         cms.PSet(
0039             record = cms.string('EcalChannelStatusRcd'),
0040             tag = cms.string('EcalChannelStatus_mc')
0041         ), 
0042         cms.PSet(
0043             record = cms.string('EcalIntercalibConstantsRcd'),
0044             tag = cms.string('EcalIntercalibConstants_mc')
0045         ), 
0046         cms.PSet(
0047             record = cms.string('EcalIntercalibErrorsRcd'),
0048             tag = cms.string('EcalIntercalibErrors_mc')
0049         ), 
0050         cms.PSet(
0051             record = cms.string('EcalIntercalibConstantsMCRcd'),
0052             tag = cms.string('EcalIntercalibConstantsMC_mc')
0053         ), 
0054         cms.PSet(
0055             record = cms.string('EcalGainRatiosRcd'),
0056             tag = cms.string('EcalGainRatios_mc')
0057         ), 
0058         cms.PSet(
0059             record = cms.string('EcalWeightXtalGroupsRcd'),
0060             tag = cms.string('EcalWeightXtalGroups_mc')
0061         ), 
0062         cms.PSet(
0063             record = cms.string('EcalTBWeightsRcd'),
0064             tag = cms.string('EcalTBWeights_mc')
0065         ), 
0066         cms.PSet(
0067             record = cms.string('EcalClusterCrackCorrParametersRcd'),
0068             tag = cms.string('EcalClusterCrackCorrParameters_mc')
0069         ),
0070         cms.PSet(
0071             record = cms.string('EcalClusterEnergyUncertaintyParametersRcd'),
0072             tag = cms.string('EcalClusterEnergyUncertaintyParameters_mc')
0073         ),
0074         cms.PSet(
0075             record = cms.string('EcalClusterEnergyCorrectionParametersRcd'),
0076             tag = cms.string('EcalClusterEnergyCorrectionParameters_mc')
0077         ),
0078         cms.PSet(
0079             record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
0080             tag = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters_mc')
0081         ),
0082         cms.PSet(
0083              record = cms.string('EcalTimeCalibConstantsRcd'),
0084              tag = cms.string('EcalTimeCalibConstants_mc')
0085         ),
0086         cms.PSet(
0087             record = cms.string('EcalClusterLocalContCorrParametersRcd'),
0088             tag = cms.string('EcalClusterLocalContCorrParameters_mc')
0089         ))
0090 )
0091 
0092 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0093     timetype = cms.string('runnumber'),
0094     toCopy = cms.VPSet(cms.PSet(
0095         record = cms.string('EcalPedestalsRcd'),
0096         container = cms.string('EcalPedestals')
0097     ), 
0098         cms.PSet(
0099             record = cms.string('EcalADCToGeVConstantRcd'),
0100             container = cms.string('EcalADCToGeVConstant')
0101         ), 
0102         cms.PSet(
0103             record = cms.string('EcalChannelStatusRcd'),
0104             container = cms.string('EcalChannelStatus')
0105         ), 
0106         cms.PSet(
0107             record = cms.string('EcalIntercalibConstantsRcd'),
0108             container = cms.string('EcalIntercalibConstants')
0109         ), 
0110         cms.PSet(
0111             record = cms.string('EcalIntercalibErrorsRcd'),
0112             container = cms.string('EcalIntercalibErrors')
0113         ), 
0114         cms.PSet(
0115             record = cms.string('EcalIntercalibConstantsMCRcd'),
0116             container = cms.string('EcalIntercalibConstantsMC')
0117         ), 
0118         cms.PSet(
0119             record = cms.string('EcalGainRatiosRcd'),
0120             container = cms.string('EcalGainRatios')
0121         ), 
0122         cms.PSet(
0123             record = cms.string('EcalWeightXtalGroupsRcd'),
0124             container = cms.string('EcalWeightXtalGroups')
0125         ), 
0126         cms.PSet(
0127             record = cms.string('EcalTBWeightsRcd'),
0128             container = cms.string('EcalTBWeights')
0129         ), 
0130         cms.PSet(
0131             record = cms.string('EcalClusterEnergyUncertaintyParametersRcd'),
0132             container = cms.string('EcalClusterEnergyUncertaintyParameters')
0133         ),
0134         cms.PSet(
0135             record = cms.string('EcalClusterEnergyCorrectionParametersRcd'),
0136             container = cms.string('EcalClusterEnergyCorrectionParameters')
0137         ),
0138         cms.PSet(
0139             record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
0140             container = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters')
0141         ),
0142         cms.PSet(
0143             record = cms.string('EcalClusterLocalContCorrParametersRcd'),
0144             container = cms.string('EcalClusterLocalContCorrParameters')
0145         ),
0146         cms.PSet(
0147             record = cms.string('EcalTimeCalibConstantsRcd'),
0148             container = cms.string('EcalTimeCalibConstants')
0149         ))
0150 )
0151 
0152 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0153 
0154 process.p = cms.Path(process.prod*process.dbCopy)
0155