File indexing completed on 2024-04-06 12:02:44
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process('test')
0004
0005
0006 process.source = cms.Source("EmptyIOVSource",
0007 timetype = cms.string('runnumber'),
0008 firstValue = cms.uint64(1),
0009 lastValue = cms.uint64(1),
0010 interval = cms.uint64(1)
0011 )
0012
0013
0014
0015 process.load("CalibPPS.ESProducers.ctppsRPAlignmentCorrectionsDataESSourceXML_cfi")
0016 process.ctppsRPAlignmentCorrectionsDataESSourceXML.RealFiles = cms.vstring("CondFormats/PPSObjects/xml/sample_alignment_corrections.xml")
0017 process.ctppsRPAlignmentCorrectionsDataESSourceXML.MeasuredFiles = cms.vstring("CondFormats/PPSObjects/xml/sample_alignment_corrections.xml")
0018 process.ctppsRPAlignmentCorrectionsDataESSourceXML.MisalignedFiles = cms.vstring("CondFormats/PPSObjects/xml/sample_alignment_corrections.xml")
0019
0020
0021
0022 process.load("CondCore.CondDB.CondDB_cfi")
0023
0024 process.CondDB.connect = 'sqlite_file:CTPPSRPAlignment.db'
0025
0026
0027 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0028 process.CondDB,
0029 timetype = cms.untracked.string('runnumber'),
0030 toPut = cms.VPSet(
0031 cms.PSet(
0032 record = cms.string('CTPPSRPAlignmentCorrectionsDataRcd'),
0033 tag = cms.string('CTPPSRPAlignment'),
0034 )
0035 )
0036 )
0037
0038
0039
0040 process.writeCTPPSRPAlignments = cms.EDAnalyzer("CTPPSRPAlignmentInfoAnalyzer",
0041 cms.PSet(
0042 iov = cms.uint64(1),
0043 record = cms.string("CTPPSRPAlignmentCorrectionsDataRcd")
0044 )
0045 )
0046
0047 process.path = cms.Path(
0048 process.writeCTPPSRPAlignments
0049 )