File indexing completed on 2024-04-06 12:02:44
0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003
0004 if len(sys.argv)>1:
0005 sqlitename =sys.argv[1]
0006 else:
0007 sqlitename = "CTPPSRPRealAlignment.db"
0008
0009 if len(sys.argv) > 2:
0010 runno = int(sys.argv[2])
0011 else:
0012 runno=1
0013
0014 if len(sys.argv) >3 :
0015 tagname = sys.argv[3]
0016 else:
0017 tagname="CTPPSRPAlignment_real"
0018
0019 if len(sys.argv) > 4:
0020 rcdname=sys.argv[4]
0021 else:
0022 rcdname="RPRealAlignmentRecord"
0023
0024 process = cms.Process("ProcessOne")
0025
0026 process.source= cms.Source("EmptyIOVSource",
0027 timetype = cms.string('runnumber'),
0028 firstValue = cms.uint64(runno),
0029 lastValue = cms.uint64(runno),
0030 interval = cms.uint64(1)
0031 )
0032
0033
0034 process.load("CondCore.CondDB.CondDB_cfi")
0035
0036 process.CondDB.connect = 'sqlite_file:'+sqlitename
0037
0038 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0039 process.CondDB,
0040 DumpStat=cms.untracked.bool(True),
0041 toGet = cms.VPSet(
0042 cms.PSet(
0043 record = cms.string(rcdname),
0044 tag = cms.string(tagname)
0045 )
0046 )
0047 )
0048
0049 process.readSqlite = cms.EDAnalyzer("CTPPSRPAlignmentInfoReader",
0050 cms.PSet(
0051 iov = cms.uint64(runno),
0052 record=cms.string(rcdname)
0053 )
0054 )
0055
0056 process.p = cms.Path(process.readSqlite)