Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:05

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0006 process.EcalTrivialConditionRetriever.producedEcalLaserAlphas =  cms.untracked.bool(True)
0007 
0008 process.EcalTrivialConditionRetriever.getLaserAlphaFromTypeEB =  cms.untracked.bool(True)
0009 process.EcalTrivialConditionRetriever.getLaserAlphaFromTypeEE =  cms.untracked.bool(True)
0010 process.EcalTrivialConditionRetriever.laserAlphaMeanEBR = cms.untracked.double(1.52)
0011 process.EcalTrivialConditionRetriever.laserAlphaMeanEBC = cms.untracked.double(1.00)
0012 process.EcalTrivialConditionRetriever.laserAlphaMeanEER = cms.untracked.double(1.16)
0013 process.EcalTrivialConditionRetriever.laserAlphaMeanEEC = cms.untracked.double(1.00)
0014 # uses CalibCalorimetry/EcalTrivialCondModules/data/EBLaserAlpha.txt for Russian/Chinese Xtals distinction
0015 # uses CalibCalorimetry/EcalTrivialCondModules/data/EELaserAlpha.txt for Russian/Chinese Xtals distinction
0016 
0017 process.EcalTrivialConditionRetriever.getLaserAlphaFromFileEB =  cms.untracked.bool(False)
0018 process.EcalTrivialConditionRetriever.getLaserAlphaFromFileEE =  cms.untracked.bool(False)
0019 #process.EcalTrivialConditionRetriever.EBLaserAlphaFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/EBLaserAlpha_fromFile.txt')
0020 #process.EcalTrivialConditionRetriever.EELaserAlphaFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/EELaserAlpha_fromFile.txt')
0021 # ieta, iphi, alpha for EB
0022 # iz, ix, iy, alpha for EE
0023 
0024 process.load("CondCore.CondDB.CondDB_cfi")
0025 # process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0026 process.CondDB.connect = 'sqlite_file:EcalLaserAlphas_byTYPE.db'
0027 # process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0028 
0029 
0030 process.MessageLogger = cms.Service("MessageLogger",
0031     cerr = cms.untracked.PSet(
0032         enable = cms.untracked.bool(False)
0033     ),
0034     cout = cms.untracked.PSet(
0035         enable = cms.untracked.bool(True)
0036     ),
0037     debugModules = cms.untracked.vstring('*')
0038 )
0039 
0040 process.source = cms.Source("EmptyIOVSource",
0041     firstValue = cms.uint64(1),
0042     lastValue = cms.uint64(1),
0043     timetype = cms.string('runnumber'),
0044     interval = cms.uint64(1)
0045 )
0046 
0047 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0048     process.CondDB,
0049     toPut = cms.VPSet(cms.PSet(
0050         record = cms.string('EcalLaserAlphasRcd'),
0051         tag = cms.string('EcalLaserAlphas_byTYPE')
0052         ))
0053 )
0054 
0055 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0056     timetype = cms.string('runnumber'),
0057     toCopy = cms.VPSet(cms.PSet(
0058         record = cms.string('EcalLaserAlphasRcd'),
0059         container = cms.string('EcalLaserAlphas')
0060         ))
0061 )
0062 
0063 
0064 
0065 process.p = cms.Path(process.dbCopy)
0066