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.50)
0012 process.EcalTrivialConditionRetriever.laserAlphaMeanEER = cms.untracked.double(1.16)
0013 process.EcalTrivialConditionRetriever.laserAlphaMeanEEC = cms.untracked.double(1.00)
0014 
0015 # uses CalibCalorimetry/EcalTrivialCondModules/data/EBLaserAlpha.txt for Russian/Chinese Xtals distinction
0016 # uses CalibCalorimetry/EcalTrivialCondModules/data/EELaserAlpha.txt for Russian/Chinese Xtals distinction
0017 
0018 process.EcalTrivialConditionRetriever.getLaserAlphaFromFileEB =  cms.untracked.bool(False)
0019 process.EcalTrivialConditionRetriever.getLaserAlphaFromFileEE =  cms.untracked.bool(False)
0020 #process.EcalTrivialConditionRetriever.EBLaserAlphaFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/EBLaserAlpha_fromFile.txt')
0021 #process.EcalTrivialConditionRetriever.EELaserAlphaFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/EELaserAlpha_fromFile.txt')
0022 process.EcalTrivialConditionRetriever.EELaserAlphaFile2 = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/LaserLossRing.txt')
0023 # ieta, iphi, alpha for EB
0024 # iz, ix, iy, alpha for EE
0025 
0026 process.load("CondCore.CondDB.CondDB_cfi")
0027 # process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0028 process.CondDB.connect = 'sqlite_file:EcalLaserAlphas_EB152-150_EE116_107_SICoptimized17.db'
0029 # process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0030 
0031 
0032 process.MessageLogger = cms.Service("MessageLogger",
0033     cerr = cms.untracked.PSet(
0034         enable = cms.untracked.bool(False)
0035     ),
0036     cout = cms.untracked.PSet(
0037         enable = cms.untracked.bool(True)
0038     ),
0039     debugModules = cms.untracked.vstring('*')
0040 )
0041 
0042 process.source = cms.Source("EmptyIOVSource",
0043     firstValue = cms.uint64(1),
0044     lastValue = cms.uint64(1),
0045     timetype = cms.string('runnumber'),
0046     interval = cms.uint64(1)
0047 )
0048 
0049 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0050     process.CondDB,
0051     toPut = cms.VPSet(cms.PSet(
0052         record = cms.string('EcalLaserAlphasRcd'),
0053         tag = cms.string('EcalLaserAlphas_EB152-150_EE116_107_SICoptimized17')
0054         ))
0055 )
0056 
0057 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0058     timetype = cms.string('runnumber'),
0059     toCopy = cms.VPSet(cms.PSet(
0060         record = cms.string('EcalLaserAlphasRcd'),
0061         container = cms.string('EcalLaserAlphas')
0062         ))
0063 )
0064 
0065 
0066 
0067 process.p = cms.Path(process.dbCopy)
0068