Back to home page

Project CMSSW displayed by LXR

 
 

    


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 # load the alignment xml file
0015 process.load("CalibPPS.ESProducers.ctppsRPAlignmentCorrectionsDataESSourceXML_cfi")
0016 #process.ctppsRPAlignmentCorrectionsDataESSourceXML.XMLFile = cms.string("CondFormats/PPSObjects/xml/sample_alignment_corrections.xml")
0017 process.ctppsRPAlignmentCorrectionsDataESSourceXML.RealFiles = cms.vstring("CondFormats/PPSObjects/xml/sample_alignment_corrections.xml")
0018 process.ctppsRPAlignmentCorrectionsDataESSourceXML.MeasuredFiles = cms.vstring("CondFormats/PPSObjects/xml/sample_alignment_corrections.xml")
0019 process.ctppsRPAlignmentCorrectionsDataESSourceXML.MisalignedFiles = cms.vstring("CondFormats/PPSObjects/xml/sample_alignment_corrections.xml")
0020 
0021 
0022 #Database output service
0023 process.load("CondCore.CondDB.CondDB_cfi")
0024 # output database (in this case local sqlite file)
0025 process.CondDB.connect = 'sqlite_file:CTPPSRPAlignment.db'
0026 
0027 
0028 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0029     process.CondDB,
0030     timetype = cms.untracked.string('runnumber'),
0031     toPut = cms.VPSet(
0032     cms.PSet(
0033         record = cms.string('RPRealAlignmentRecord'),
0034         tag = cms.string('CTPPSRPAlignment_real'),
0035     )
0036   )
0037 )
0038 
0039 
0040 # print the mapping and analysis mask
0041 process.writeCTPPSRPAlignments = cms.EDAnalyzer("CTPPSRPAlignmentInfoAnalyzer",
0042     cms.PSet(
0043         iov = cms.uint64(1),
0044         record = cms.string("RPRealAlignmentRecord")
0045     )
0046 )
0047 
0048 process.path = cms.Path(
0049   process.writeCTPPSRPAlignments
0050 )