File indexing completed on 2023-03-17 10:46:16
0001 from __future__ import print_function
0002 import os,sys, DLFCN
0003 sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY)
0004
0005 from pluginCondDBPyInterface import *
0006 a = FWIncantation()
0007
0008 rdbms = RDBMS("/afs/cern.ch/cms/DB/conddb")
0009
0010 dbName = "oracle://cms_orcoff_prod/CMS_COND_21X_RUN_INFO"
0011 logName = "oracle://cms_orcoff_prod/CMS_COND_21X_POPCONLOG"
0012
0013 rdbms.setLogger(logName)
0014 from CondCore.Utilities import iovInspector as inspect
0015
0016 db = rdbms.getDB(dbName)
0017 tags = db.allTags()
0018
0019
0020 tag = 'runstart_test'
0021
0022
0023
0024
0025 try :
0026 log = db.lastLogEntry(tag)
0027
0028
0029
0030
0031
0032
0033
0034 iov = inspect.Iov(db,tag,0,0,0,1)
0035 print(iov.list())
0036 for x in iov.summaries():
0037 print(x[1], x[2] ,x[3])
0038
0039 except RuntimeError :
0040 print(" no iov? in", tag)
0041
0042