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.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
0013
0014 process.load("CondCore.CondDB.CondDB_cfi")
0015
0016
0017 process.CondDB.connect = 'sqlite_file:EBAlignment_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('EBAlignmentRcd'),
0042 tag = cms.string('EBAlignment_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('EBAlignmentRcd'),
0052 container = cms.string('EBAlignment')
0053 )
0054 )
0055 )
0056
0057
0058 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0059
0060 process.p = cms.Path(process.prod*process.dbCopy)
0061