File indexing completed on 2024-11-25 02:29:23
0001 import DLFCN, sys, os
0002 sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY)
0003 import pluginCondDBPyInterface as condDB
0004 a = condDB.FWIncantation()
0005 rdbms = condDB.RDBMS()
0006 conn = "frontier://FrontierPrep/CMS_COND_STRIP"
0007 conn = "frontier://FrontierInt/CMS_COND_STRIP"
0008 conn = "frontier://PromptProd/CMS_COND_31X_STRIP"
0009 db = rdbms.getReadOnlyDB(conn)
0010 tag = "SiStripBadChannel_FromOfflineCalibration_GR10_v1_prompt"
0011 db.startReadOnlyTransaction()
0012 iov = db.iov(tag)
0013
0014 Plug = __import__(str(db.payloadModules(tag)[0]))
0015 payload = Plug.Object(db)
0016 listOfIovElem= [iovElem for iovElem in iov.elements]
0017
0018 if len(sys.argv) < 2:
0019 print("Please specify the IOV (run number)")
0020 sys.exit()
0021
0022 runNumber = int(sys.argv[1])
0023
0024 for elem in iov.elements:
0025
0026
0027 if runNumber >= elem.since() and runNumber <= elem.till():
0028 theIOV = payload.load(elem)
0029 print("since =", elem.since(), ", till =", elem.till())
0030 if theIOV:
0031
0032 print(payload.summary())
0033 print(payload.dump())
0034 db.commitTransaction()