Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:52

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005 process.EcalTrivialConditionRetriever.TotLumi = cms.untracked.double(3000.0)
0006 process.EcalTrivialConditionRetriever.InstLumi = cms.untracked.double(5.0e+34)
0007 process.EcalTrivialConditionRetriever.intercalibConstantsFile = cms.untracked.string("EcalIntercalibConstants_2011_V3_Bon_start_mc.xml") 
0008 process.EcalTrivialConditionRetriever.intercalibConstantsMCFile = cms.untracked.string("EcalIntercalibConstantsMC_digi_2011_V3_Bon_mc.xml") 
0009 
0010 
0011 
0012 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0013 process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0014 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0015 #process.CondDBCommon.connect = 'sqlite_file:DB.db'
0016 
0017 process.MessageLogger = cms.Service("MessageLogger",
0018     cerr = cms.untracked.PSet(
0019         enable = cms.untracked.bool(False)
0020     ),
0021     cout = cms.untracked.PSet(
0022         enable = cms.untracked.bool(True)
0023     ),
0024     debugModules = cms.untracked.vstring('*')
0025 )
0026 
0027 process.source = cms.Source("EmptyIOVSource",
0028     firstValue = cms.uint64(1),
0029     lastValue = cms.uint64(1),
0030     timetype = cms.string('runnumber'),
0031     interval = cms.uint64(1)
0032 )
0033 
0034 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0035     process.CondDBCommon,
0036     toPut = cms.VPSet(                      cms.PSet(
0037             record = cms.string('EcalIntercalibConstantsRcd'),
0038             tag = cms.string('EcalIntercalibConstants_TL3000_IL5E34_mc')
0039         ) 
0040                       )
0041 )
0042 
0043 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0044     timetype = cms.string('runnumber'),
0045     toCopy = cms.VPSet(
0046                        cms.PSet(
0047             record = cms.string('EcalIntercalibConstantsRcd'),
0048             container = cms.string('EcalIntercalibConstants')
0049         ))
0050 )
0051 
0052 
0053 
0054 process.p = cms.Path(process.dbCopy)
0055