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