Back to home page

Project CMSSW displayed by LXR

 
 

    


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 # import sys
0006 # if len(sys.argv) > 2:
0007 #     startrun = sys.argv[1]
0008 #     path = sys.argv[2]+"/"
0009 # else:
0010 #     print("not able to run")
0011 #     exit()
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 # load the alignment xml file
0022 process.load("CalibPPS.ESProducers.ctppsRPAlignmentCorrectionsDataESSourceXML_cfi")
0023 #process.ctppsRPAlignmentCorrectionsDataESSourceXML.XMLFile = cms.string("CondFormats/PPSObjects/xml/sample_alignment_corrections.xml")
0024 process.ctppsRPAlignmentCorrectionsDataESSourceXML.RealFiles = cms.vstring(
0025     "CondFormats/PPSObjects/xml/sample_alignment_corrections.xml"
0026     #"CondTools/CTPPS/test/largeXMLmanipulations/real_alignment_iov303832.xml"
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 #Database output service
0033 process.load("CondCore.CondDB.CondDB_cfi")
0034 # output database (in this case local sqlite file)
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 # print the mapping and analysis mask
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 )