Back to home page

Project CMSSW displayed by LXR

 
 

    


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" # for develoment DB
0007 conn = "frontier://FrontierInt/CMS_COND_STRIP" # for integration DB (as agreed to do tests)
0008 conn = "frontier://PromptProd/CMS_COND_31X_STRIP"
0009 db = rdbms.getReadOnlyDB(conn)
0010 tag = "SiStripShiftAndCrosstalk_GR10_v1_express"
0011 db.startReadOnlyTransaction()
0012 iov = db.iov(tag)
0013 # print list(db.payloadModules(tag))
0014 Plug = __import__(str(db.payloadModules(tag)[0]))
0015 payload = Plug.Object(db)
0016 listOfIovElem= [iovElem for iovElem in iov.elements]
0017 
0018 runNumber = 0
0019 
0020 if len(sys.argv) >= 2:
0021     runNumber = int(sys.argv[1])
0022 
0023 for elem in iov.elements:
0024     if runNumber==0 or (runNumber >= elem.since() and runNumber <= elem.till()):
0025         theIOV = payload.load(elem)
0026         print("since =", elem.since(), ", till =", elem.till())
0027         if theIOV:
0028             print(payload.summary())
0029             print(payload.dump())
0030         else:
0031             print("error in retriving payload")
0032             
0033 db.commitTransaction()