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