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 os.putenv("CORAL_AUTH_PATH","/afs/cern.ch/cms/DB/conddb")
0008 rdbms = RDBMS()
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 tag = 'runinfostart_test'
0020
0021 try :
0022 log = db.lastLogEntry(tag)
0023 print(log.getState())
0024 iov = inspect.Iov(db,tag)
0025 print(iov.list())
0026 for x in iov.summaries():
0027 print(x[1], x[2] ,x[3])
0028
0029 except RuntimeError :
0030 print(" no iov? in", tag)
0031
0032