CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/DQMServices/Diagnostic/scripts/Database/Python/DiscoverProcessedRuns.py

Go to the documentation of this file.
00001 import os
00002 
00003 class DiscoverProcessedRuns:
00004     def runsList(self):
00005         print "cd "+self.CMSSW_Version+"; eval `scramv1 r -sh`; cd -; cmscond_list_iov -c "+self.Database+" -P "+self.AuthenticationPath+" -t "+self.TagName
00006         fullList = os.popen("source /afs/cern.ch/cms/sw/cmsset_default.sh; cd "+self.CMSSW_Version+"/src; eval `scramv1 r -sh`; cd -; cmscond_list_iov -c "+self.Database+" -P "+self.AuthenticationPath+" -t "+self.TagName).read()
00007         runsListInTag = list()
00008         # print fullList
00009         for line in fullList.split("\n"):
00010             # print line
00011             if( line.find("=HDQMSummary") != -1 and not line.startswith("1 ")):
00012                 # print line.split()[0]
00013                 runsListInTag.append(line.split()[0])
00014         return runsListInTag