CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/CondTools/Ecal/python/copyTrivialLin.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("TEST")
00004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
00005 
00006 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00007 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
00008 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
00009 process.CondDBCommon.connect = 'sqlite_file:DB.db'
00010 
00011 process.MessageLogger = cms.Service("MessageLogger",
00012     debugModules = cms.untracked.vstring('*'),
00013     destinations = cms.untracked.vstring('cout')
00014 )
00015 
00016 process.source = cms.Source("EmptyIOVSource",
00017     firstValue = cms.uint64(1),
00018     lastValue = cms.uint64(1),
00019     timetype = cms.string('runnumber'),
00020     interval = cms.uint64(1)
00021 )
00022 
00023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00024     process.CondDBCommon,
00025     toPut = cms.VPSet(cms.PSet(
00026         record = cms.string('EcalPedestalsRcd'),
00027         tag = cms.string('EcalPedestals_mc')
00028     ), 
00029         cms.PSet(
00030             record = cms.string('EcalADCToGeVConstantRcd'),
00031             tag = cms.string('EcalADCToGeVConstant_mc')
00032         ), 
00033         cms.PSet(
00034             record = cms.string('EcalChannelStatusRcd'),
00035             tag = cms.string('EcalChannelStatus_mc')
00036         ), 
00037         cms.PSet(
00038             record = cms.string('EcalIntercalibConstantsRcd'),
00039             tag = cms.string('EcalIntercalibConstants_mc')
00040         ), 
00041         cms.PSet(
00042             record = cms.string('EcalIntercalibErrorsRcd'),
00043             tag = cms.string('EcalIntercalibErrors_mc')
00044         ), 
00045         cms.PSet(
00046             record = cms.string('EcalIntercalibConstantsMCRcd'),
00047             tag = cms.string('EcalIntercalibConstantsMC_mc')
00048         ), 
00049         cms.PSet(
00050             record = cms.string('EcalGainRatiosRcd'),
00051             tag = cms.string('EcalGainRatios_mc')
00052         ), 
00053         cms.PSet(
00054             record = cms.string('EcalWeightXtalGroupsRcd'),
00055             tag = cms.string('EcalWeightXtalGroups_mc')
00056         ), 
00057         cms.PSet(
00058             record = cms.string('EcalTBWeightsRcd'),
00059             tag = cms.string('EcalTBWeights_mc')
00060         ), 
00061         cms.PSet(
00062             record = cms.string('EcalClusterCrackCorrParametersRcd'),
00063             tag = cms.string('EcalClusterCrackCorrParameters_mc')
00064         ),
00065         cms.PSet(
00066             record = cms.string('EcalClusterEnergyUncertaintyParametersRcd'),
00067             tag = cms.string('EcalClusterEnergyUncertaintyParameters_mc')
00068         ),
00069         cms.PSet(
00070             record = cms.string('EcalClusterEnergyCorrectionParametersRcd'),
00071             tag = cms.string('EcalClusterEnergyCorrectionParameters_mc')
00072         ),
00073         cms.PSet(
00074             record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
00075             tag = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters_mc')
00076         ),
00077         cms.PSet(
00078              record = cms.string('EcalTimeCalibConstantsRcd'),
00079              tag = cms.string('EcalTimeCalibConstants_mc')
00080         ),
00081         cms.PSet(
00082             record = cms.string('EcalClusterLocalContCorrParametersRcd'),
00083             tag = cms.string('EcalClusterLocalContCorrParameters_mc')
00084         ))
00085 )
00086 
00087 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
00088     timetype = cms.string('runnumber'),
00089     toCopy = cms.VPSet(cms.PSet(
00090         record = cms.string('EcalPedestalsRcd'),
00091         container = cms.string('EcalPedestals')
00092     ), 
00093         cms.PSet(
00094             record = cms.string('EcalADCToGeVConstantRcd'),
00095             container = cms.string('EcalADCToGeVConstant')
00096         ), 
00097         cms.PSet(
00098             record = cms.string('EcalChannelStatusRcd'),
00099             container = cms.string('EcalChannelStatus')
00100         ), 
00101         cms.PSet(
00102             record = cms.string('EcalIntercalibConstantsRcd'),
00103             container = cms.string('EcalIntercalibConstants')
00104         ), 
00105         cms.PSet(
00106             record = cms.string('EcalIntercalibErrorsRcd'),
00107             container = cms.string('EcalIntercalibErrors')
00108         ), 
00109         cms.PSet(
00110             record = cms.string('EcalIntercalibConstantsMCRcd'),
00111             container = cms.string('EcalIntercalibConstantsMC')
00112         ), 
00113         cms.PSet(
00114             record = cms.string('EcalGainRatiosRcd'),
00115             container = cms.string('EcalGainRatios')
00116         ), 
00117         cms.PSet(
00118             record = cms.string('EcalWeightXtalGroupsRcd'),
00119             container = cms.string('EcalWeightXtalGroups')
00120         ), 
00121         cms.PSet(
00122             record = cms.string('EcalTBWeightsRcd'),
00123             container = cms.string('EcalTBWeights')
00124         ), 
00125         cms.PSet(
00126             record = cms.string('EcalClusterEnergyUncertaintyParametersRcd'),
00127             container = cms.string('EcalClusterEnergyUncertaintyParameters')
00128         ),
00129         cms.PSet(
00130             record = cms.string('EcalClusterEnergyCorrectionParametersRcd'),
00131             container = cms.string('EcalClusterEnergyCorrectionParameters')
00132         ),
00133         cms.PSet(
00134             record = cms.string('EcalClusterEnergyCorrectionObjectSpecificParametersRcd'),
00135             container = cms.string('EcalClusterEnergyCorrectionObjectSpecificParameters')
00136         ),
00137         cms.PSet(
00138             record = cms.string('EcalClusterLocalContCorrParametersRcd'),
00139             container = cms.string('EcalClusterLocalContCorrParameters')
00140         ),
00141         cms.PSet(
00142             record = cms.string('EcalTimeCalibConstantsRcd'),
00143             container = cms.string('EcalTimeCalibConstants')
00144         ))
00145 )
00146 
00147 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
00148 
00149 process.p = cms.Path(process.prod*process.dbCopy)
00150