Functions | |
def | appendDataXML |
def | compactNodeValue |
def | fillTable |
def | filterNodeList |
def | getAppInfo |
getAppInfo # More... | |
def | getAppNameFromCfg |
def | getProcNameFromCfg |
def | printGrid |
def | printXMLtree |
def | SortAndGrid |
Variables | |
args = sys.argv | |
string | options = "" |
string | xmldoc = "" |
Some module's global variables. More... | |
string | XMLfile = "" |
def ExtractAppInfoFromXML.appendDataXML | ( | head | ) |
Parses information that's XML format from value to the Docuemnt tree
Definition at line 65 of file ExtractAppInfoFromXML.py.
References compactNodeValue().
Referenced by getAppInfo().
def ExtractAppInfoFromXML.compactNodeValue | ( | head | ) |
def ExtractAppInfoFromXML.fillTable | ( | order, | |
branch = [] |
|||
) |
Definition at line 140 of file ExtractAppInfoFromXML.py.
References filterNodeList(), getAppNameFromCfg(), getProcNameFromCfg(), and min().
Referenced by getAppInfo().
def ExtractAppInfoFromXML.filterNodeList | ( | branch1, | |
nodeList | |||
) |
def ExtractAppInfoFromXML.getAppInfo | ( | XMLf, | |
s = 0 , |
|||
a = 2 , |
|||
p = 1 , |
|||
c = 3 |
|||
) |
getAppInfo #
getAppInfo(XMLf,s=0,a=2,p=1,c=3) takes the file name of a valid RCMS configuration and 4 variables that represent which fields are desired and in which order. It returns a touple containing a directory that contains all the relevant information in the XMLf file and a list of rows each row containing the fiels specified by the other four variables in the r espective order The fields are Servers (s) ports(p) Appnames a.k.a. consumer names(a) and consumer config file. (Note: The consumerName is directly extracted from the config file.) if one field is not desired it should be assigned a value of -1 eg s=-1. other wise their value is mapped from smallest to largest ==> left to right. Note the default values, they will take precedence if not specifyed giving unexpected results
Definition at line 231 of file ExtractAppInfoFromXML.py.
References appendDataXML(), fillTable(), and SortAndGrid().
def ExtractAppInfoFromXML.getAppNameFromCfg | ( | filename | ) |
it searches for the line containing the string consumerName, usually found as a property of the process, and returns the set value found. eg. matches line: process.EventStreamHttpReader.consumerName = 'EcalEndcap DQM Consumer' returns: EcalEndcap DQM Consumer
Definition at line 74 of file ExtractAppInfoFromXML.py.
Referenced by fillTable().
def ExtractAppInfoFromXML.getProcNameFromCfg | ( | filename | ) |
it searches for the line containing the string consumerName, usually found as a property of the process, and returns the set value found. eg. matches line: process = cms.Process ("ECALDQM") returns: ECALDQM
Definition at line 99 of file ExtractAppInfoFromXML.py.
Referenced by fillTable().
def ExtractAppInfoFromXML.printGrid | ( | grid | ) |
Definition at line 212 of file ExtractAppInfoFromXML.py.
def ExtractAppInfoFromXML.printXMLtree | ( | head, | |
l = 0 , |
|||
bn = 0 |
|||
) |
Definition at line 29 of file ExtractAppInfoFromXML.py.
def ExtractAppInfoFromXML.SortAndGrid | ( | table, | |
order | |||
) |
table => {s:{p:{c:{a:{}}}}}
Definition at line 191 of file ExtractAppInfoFromXML.py.
Referenced by getAppInfo().
ExtractAppInfoFromXML.args = sys.argv |
Definition at line 291 of file ExtractAppInfoFromXML.py.
string ExtractAppInfoFromXML.options = "" |
Definition at line 293 of file ExtractAppInfoFromXML.py.
string ExtractAppInfoFromXML.xmldoc = "" |
Some module's global variables.
Definition at line 27 of file ExtractAppInfoFromXML.py.
Referenced by Tree.loadFromXML(), and Tree.saveToXML().
ExtractAppInfoFromXML.XMLfile = "" |
Definition at line 290 of file ExtractAppInfoFromXML.py.