ATLAS Offline Software
|
Functions | |
def | handiWithComparisons (name, resultsFile, htmlDir, runlistLoc, compare, browserMenu, allDirsScriptDir, jsRoot=1) |
def | makeAllDirsXml (htmlDir, name, s, number, resultsFile) |
def | makeAllDirsFile (htmlDir, name, s, number, resultsFile) |
def | makeAllDirsBrowserFile (htmlDir, name, s, number, resultsFile, AllDirsScriptDir) |
def | makeSubDirFile (htmlDir, name, s, number, subname, assessIndex, runlistLoc, compare, AllDirsScriptDir, jsRoot) |
def | makeColorFile (htmlDir, name, s, number, subname, assessIndex, color, runlistLoc, compare, AllDirsScriptDir, jsRoot) |
def | writeLimitDiagram (k, limitName, lowColor, hiColor, loVal, hiVal) |
def | makeOneHistFile (htmlDir, name, subname, sp, runlistLoc, compare, jsRoot) |
def | makeRootFile (htmlDir, name, subname) |
t = htmlDir.split("/"); pref = "run"; stream = "no stream"; run = "no run"; for x in range(0,len(t)): if (t[x].find("run_")!=-1): run = t[x] if(x>1): stream = t[x-1] if(t[x].find("minutes10_")!=-1): pref =t[x] if(t[x].find("minutes30_")!=-1): pref =t[x] k.write(' More... | |
def | makeCSSFile (htmlDir, name, subname) |
def | stringListSystemPaths (resultsFile, location) |
def | stringAllDQAssessments (resultsFile) |
def | saveAllHistograms (resultsFile, location, drawRefs, run_min_LB, jsRoot) |
Variables | |
CWD = os.getcwd() | |
float | LBlength = 1.0 |
jsonFileCull = set() | |
inputname = sp[x+1] | |
k.write('<script type="text/javascript" src="'+javaScriptLoc +'"> </script> ') More... | |
algorithm = sp[2] | |
int | extra = len(sp)-4 |
int | cc = 4 |
int | Green = 0 |
int | cG = -1 |
int | cR = -1 |
string | currentHeading = '' |
list | namecache = [] |
spi = sp[cc].find("Green") | |
limitName = sp[cc][:spi] | |
Red = float(sp[cc+1]) | |
string | name = ' '.join([namecache[-1]]) |
string | resultname = name.rsplit(':', 1)[0] |
resultval = sp[cc-1] | |
string | queryurl |
string | queryurl1 |
string | queryurl2 |
string | jsonPath = htmlDir+'/'+subname+'/'+sp[0]+".json" if sp[0] else "" |
string | jsonFile = open(jsonPath, 'r') if os.path.isfile(jsonPath) else "" |
string | jsonStr = jsonFile.read() |
now = time.localtime() | |
string | lastUpdate = "Last Update: "+time.strftime('%Y-%m-%d %H:%M %Z', now) |
def python.handimod.handiWithComparisons | ( | name, | |
resultsFile, | |||
htmlDir, | |||
runlistLoc, | |||
compare, | |||
browserMenu, | |||
allDirsScriptDir, | |||
jsRoot = 1 |
|||
) |
Definition at line 27 of file handimod.py.
def python.handimod.makeAllDirsBrowserFile | ( | htmlDir, | |
name, | |||
s, | |||
number, | |||
resultsFile, | |||
AllDirsScriptDir | |||
) |
Definition at line 272 of file handimod.py.
def python.handimod.makeAllDirsFile | ( | htmlDir, | |
name, | |||
s, | |||
number, | |||
resultsFile | |||
) |
Definition at line 183 of file handimod.py.
def python.handimod.makeAllDirsXml | ( | htmlDir, | |
name, | |||
s, | |||
number, | |||
resultsFile | |||
) |
Definition at line 126 of file handimod.py.
def python.handimod.makeColorFile | ( | htmlDir, | |
name, | |||
s, | |||
number, | |||
subname, | |||
assessIndex, | |||
color, | |||
runlistLoc, | |||
compare, | |||
AllDirsScriptDir, | |||
jsRoot | |||
) |
Definition at line 385 of file handimod.py.
def python.handimod.makeCSSFile | ( | htmlDir, | |
name, | |||
subname | |||
) |
Definition at line 746 of file handimod.py.
def python.handimod.makeOneHistFile | ( | htmlDir, | |
name, | |||
subname, | |||
sp, | |||
runlistLoc, | |||
compare, | |||
jsRoot | |||
) |
Definition at line 470 of file handimod.py.
def python.handimod.makeRootFile | ( | htmlDir, | |
name, | |||
subname | |||
) |
t = htmlDir.split("/"); pref = "run"; stream = "no stream"; run = "no run"; for x in range(0,len(t)): if (t[x].find("run_")!=-1): run = t[x] if(x>1): stream = t[x-1] if(t[x].find("minutes10_")!=-1): pref =t[x] if(t[x].find("minutes30_")!=-1): pref =t[x] k.write('
<div id="compareButton">
') hisname=pref+"/"+subname+ '/' + sp[0] k.write('<input type="button" onclick="compare(\''+ runlistLoc +'\',\''+hisname +'\');" value="compare" />') k.write('
') k.write('
<div id="streamSelect">
') k.write('
<div id="runSelect">
') k.write('<div id="secondHisto">
') histname='/'+subname+ '/' + sp[0] need to do a bit of tricks to point to the webpage will be improved in the future (another input variable to handi.py?) if (htmlDir.find('./www/')>-1): g = htmlDir.split('./www/') htmlWeb='http://atlasdqm.cern.ch/tier0/FDR2c/'+g[1] else: htmlWeb='http://atlasdqm.web.cern.ch/atlasdqm/test/4/physics_Express/run' history_dir = htmlWeb.split('/run')[0]+"/history_plot" except: history_dir = "http://atlasdqm.web.cern.ch/atlasdqm/test/4/physics_Express/history_plot" sep = histname.split('/') riu = '-'.join(sep) if (riu.find('-->')>-1): hh = riu.split('-->') gg = '-'.join(hh) riu = gg hisname = history_dir+'/h'+str(riu)+'.gif' k.write('<script type="text/javascript" src="'+HjavaScriptLoc +'">
</script>
') k.write('<input type="button" onclick="returnHistory(\''+hisname +'\');" value="History" />') k.write('
')
Definition at line 732 of file handimod.py.
def python.handimod.makeSubDirFile | ( | htmlDir, | |
name, | |||
s, | |||
number, | |||
subname, | |||
assessIndex, | |||
runlistLoc, | |||
compare, | |||
AllDirsScriptDir, | |||
jsRoot | |||
) |
Definition at line 320 of file handimod.py.
def python.handimod.saveAllHistograms | ( | resultsFile, | |
location, | |||
drawRefs, | |||
run_min_LB, | |||
jsRoot | |||
) |
Definition at line 795 of file handimod.py.
def python.handimod.stringAllDQAssessments | ( | resultsFile | ) |
Definition at line 788 of file handimod.py.
def python.handimod.stringListSystemPaths | ( | resultsFile, | |
location | |||
) |
Definition at line 781 of file handimod.py.
def python.handimod.writeLimitDiagram | ( | k, | |
limitName, | |||
lowColor, | |||
hiColor, | |||
loVal, | |||
hiVal | |||
) |
Definition at line 452 of file handimod.py.
python.handimod.algorithm = sp[2] |
Definition at line 521 of file handimod.py.
int python.handimod.cc = 4 |
Definition at line 523 of file handimod.py.
int python.handimod.cG = -1 |
Definition at line 525 of file handimod.py.
int python.handimod.cR = -1 |
Definition at line 526 of file handimod.py.
string python.handimod.currentHeading = '' |
Definition at line 527 of file handimod.py.
python.handimod.CWD = os.getcwd() |
Definition at line 10 of file handimod.py.
int python.handimod.extra = len(sp)-4 |
Definition at line 522 of file handimod.py.
python.handimod.Green = 0 |
Definition at line 524 of file handimod.py.
python.handimod.inputname = sp[x+1] |
k.write('<script type="text/javascript" src="'+javaScriptLoc +'">
</script>
')
Definition at line 506 of file handimod.py.
Definition at line 652 of file handimod.py.
python.handimod.jsonFileCull = set() |
Definition at line 24 of file handimod.py.
string python.handimod.jsonPath = htmlDir+'/'+subname+'/'+sp[0]+".json" if sp[0] else "" |
Definition at line 649 of file handimod.py.
string python.handimod.jsonStr = jsonFile.read() |
Definition at line 656 of file handimod.py.
string python.handimod.lastUpdate = "Last Update: "+time.strftime('%Y-%m-%d %H:%M %Z', now) |
Definition at line 677 of file handimod.py.
float python.handimod.LBlength = 1.0 |
Definition at line 23 of file handimod.py.
Definition at line 533 of file handimod.py.
string python.handimod.name = ' '.join([namecache[-1]]) |
Definition at line 607 of file handimod.py.
list python.handimod.namecache = [] |
Definition at line 528 of file handimod.py.
python.handimod.now = time.localtime() |
Definition at line 675 of file handimod.py.
string python.handimod.queryurl |
Definition at line 617 of file handimod.py.
string python.handimod.queryurl1 |
Definition at line 623 of file handimod.py.
string python.handimod.queryurl2 |
Definition at line 625 of file handimod.py.
python.handimod.Red = float(sp[cc+1]) |
Definition at line 551 of file handimod.py.
string python.handimod.resultname = name.rsplit(':', 1)[0] |
Definition at line 610 of file handimod.py.
dictionary python.handimod.resultval = sp[cc-1] |
Definition at line 611 of file handimod.py.
Definition at line 532 of file handimod.py.