Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005 process.EcalTrivialConditionRetriever.getEBAlignmentFromFile = cms.untracked.bool(True)
0006 process.EcalTrivialConditionRetriever.EBAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data_test/EBAlignment_2018.txt')
0007 process.EcalTrivialConditionRetriever.getEEAlignmentFromFile = cms.untracked.bool(True)
0008 process.EcalTrivialConditionRetriever.EEAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data_test/EEAlignment_2018.txt')
0009 process.EcalTrivialConditionRetriever.getESAlignmentFromFile = cms.untracked.bool(True)
0010 process.EcalTrivialConditionRetriever.ESAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data_test/ESAlignment_2018.txt')
0011 
0012 #process.load("EcalTrivialAlignment_cfi")
0013 
0014 process.load("CondCore.CondDB.CondDB_cfi")
0015 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0016 #process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0017 process.CondDB.connect = 'sqlite_file:EEAlignment_test.db'
0018 
0019 process.MessageLogger = cms.Service("MessageLogger",
0020     cerr = cms.untracked.PSet(
0021         enable = cms.untracked.bool(False)
0022     ),
0023     cout = cms.untracked.PSet(
0024         enable = cms.untracked.bool(True)
0025     ),
0026     debugModules = cms.untracked.vstring('*')
0027 )
0028 
0029 process.source = cms.Source("EmptyIOVSource",
0030     firstValue = cms.uint64(1),
0031     lastValue = cms.uint64(1),
0032     timetype = cms.string('runnumber'),
0033     interval = cms.uint64(1)
0034 )
0035 
0036 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0037     process.CondDB,
0038     timetype = cms.untracked.string('runnumber'),
0039     toPut = cms.VPSet(
0040        cms.PSet(
0041           record = cms.string('EEAlignmentRcd'),
0042           tag = cms.string('EEAlignment_test')
0043        )
0044     )
0045 )
0046 
0047 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0048     timetype = cms.string('runnumber'),
0049     toCopy = cms.VPSet( 
0050        cms.PSet(
0051           record = cms.string('EEAlignmentRcd'),
0052           container = cms.string('EEAlignment')
0053        )
0054     )
0055 )
0056 
0057 
0058 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0059 
0060 process.p = cms.Path(process.prod*process.dbCopy)
0061