Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:47

0001 import ROOT
0002 import sys
0003 db_sid = 'CMS_OMDS_LB'
0004 db_usr = 'CMS_ECAL_LASER_COND'
0005 db_pwd = sys.argv[1]
0006 
0007 runMin = 309000
0008 runMax = 999999
0009 
0010 econn = ROOT.EcalCondDBInterface( db_sid, db_usr, db_pwd )
0011 my_locdef  = ROOT.LocationDef()
0012 my_locdef.setLocation("P5_Co")
0013 my_rundef  = ROOT.RunTypeDef()
0014 my_rundef.setRunType("PHYSICS")
0015 
0016 runtag = ROOT.RunTag()
0017 runtag.setLocationDef(my_locdef)
0018 runtag.setRunTypeDef(my_rundef)
0019 runtag.setGeneralTag("GLOBAL")
0020 runlist = econn.fetchNonEmptyGlobalRunList( runtag, runMin, runMax ).getRuns()
0021 runs =  [ runlist[i].getRunNumber() for i in range( runlist.size() ) ]
0022 print(runs)