CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
getHLTkey Namespace Reference

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 = ""
 

Function Documentation

def getHLTkey.queryRR ( )

Definition at line 22 of file getHLTkey.py.

22 
23 def queryRR():
24  stderr.write("Querying run registry for range [%d, %d], group name like %s ...\n" % (options.firstRun, options.lastRun, options.groupName))
25  import xmlrpclib
26  import xml.dom.minidom
27  server = xmlrpclib.ServerProxy(options.rrurl)
28  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))
29  ret = {}
30  xml_data = xml.dom.minidom.parseString(run_data)
31  xml_runs = xml_data.documentElement.getElementsByTagName("RUN_DATASET")
32  for xml_run in xml_runs:
33  ret[xml_run.getElementsByTagName("RUN_NUMBER")[0].firstChild.nodeValue] = xml_run.getElementsByTagName("RUN_HLTKEY")[0].firstChild.nodeValue
34  return ret
def queryRR
Definition: getHLTkey.py:22

Variable Documentation

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.