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 tag = 'l1triggerscaler_test_v2'
0020
0021 try :
0022 log = db.lastLogEntry(tag)
0023 print(log.getState())
0024
0025
0026
0027
0028
0029
0030
0031
0032 iov = inspect.Iov(db,tag,1,1,1,0)
0033 print(iov.list())
0034 for x in iov.summaries():
0035 print(x[1], x[2] ,x[3])
0036
0037 except RuntimeError :
0038 print(" no iov? in", tag)
0039
0040