Functions | |
def | queryRR |
Variables | |
HLTkey = options.HLTkey | |
list | key = runKeys[run] |
tuple | parser = OptionParser(usage="usage: %prog [options] ") |
tuple | runKeys = queryRR() |
tuple | runs = runKeys.keys() |
dictionary | runsPerKey = {} |
tuple | theKeys = runsPerKey.keys() |
list | theruns = runsPerKey[key] |
list | tmpruns = [] |
string | topr = "" |
def getHLTkey::queryRR | ( | ) |
Definition at line 22 of file getHLTkey.py.
00023 : 00024 stderr.write("Querying run registry for range [%d, %d], group name like %s ...\n" % (options.firstRun, options.lastRun, options.groupName)) 00025 import xmlrpclib 00026 import xml.dom.minidom 00027 server = xmlrpclib.ServerProxy(options.rrurl) 00028 run_data = server.DataExporter.export('RUN', 'GLOBAL', 'xml_datasets', "{runNumber} >= %d AND {runNumber} <= %d AND {groupName} like '%s' AND {datasetName} = '/Global/Online/ALL'" % (options.firstRun, options.lastRun, options.groupName)) 00029 ret = {} 00030 xml_data = xml.dom.minidom.parseString(run_data) 00031 xml_runs = xml_data.documentElement.getElementsByTagName("RUN_DATASET") 00032 for xml_run in xml_runs: 00033 ret[xml_run.getElementsByTagName("RUN_NUMBER")[0].firstChild.nodeValue] = xml_run.getElementsByTagName("RUN_HLTKEY")[0].firstChild.nodeValue 00034 return ret
getHLTkey::HLTkey = options.HLTkey |
Definition at line 58 of file getHLTkey.py.
list getHLTkey::key = runKeys[run] |
Definition at line 41 of file getHLTkey.py.
tuple getHLTkey::parser = OptionParser(usage="usage: %prog [options] ") |
Definition at line 13 of file getHLTkey.py.
tuple getHLTkey::runKeys = queryRR() |
Definition at line 35 of file getHLTkey.py.
tuple getHLTkey::runs = runKeys.keys() |
Definition at line 36 of file getHLTkey.py.
dictionary getHLTkey::runsPerKey = {} |
Definition at line 39 of file getHLTkey.py.
tuple getHLTkey::theKeys = runsPerKey.keys() |
Definition at line 48 of file getHLTkey.py.
list getHLTkey::theruns = runsPerKey[key] |
Definition at line 50 of file getHLTkey.py.
list getHLTkey::tmpruns = [] |
Definition at line 43 of file getHLTkey.py.
string getHLTkey::topr = "" |
Definition at line 51 of file getHLTkey.py.