Back to home page

Project CMSSW displayed by LXR

 
 

    


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 os.putenv("CORAL_AUTH_PATH","/afs/cern.ch/cms/DB/conddb")
0007 rdbms = RDBMS()
0008 
0009 dbName =  "oracle://cms_orcoff_prod/CMS_COND_21X_RUN_INFO"
0010 logName = "oracle://cms_orcoff_prod/CMS_COND_21X_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 tag = 'l1triggerscaler_test_v2'
0019 
0020 try :
0021     log = db.lastLogEntry(tag)
0022     print(log.getState())
0023     iov = inspect.Iov(db,tag)
0024     print(iov.list())
0025     for x in  iov.summaries():
0026         print(x[1],x[3])
0027     #        print iov.trend("",[0,2,12])
0028 except RuntimeError :
0029     print(" no iov? in", tag)
0030 
0031