ATLAS Offline Software
|
Functions | |
def | getVarDef (what, property, default='') |
def | drawSummary (var='') |
Variables | |
string | __author__ = 'Martina Hurwitz' |
string | __version__ = '$Id $' |
string | __usage__ = '%prog [options] file1/tag1 file2/tag2' |
dictionary | varDef |
parser = OptionParser(usage=__usage__, version=__version__) | |
dest | |
action | |
default | |
False | |
help | |
type | |
options | |
args | |
string | tag1 = '' |
string | tag2 = '' |
runNumber = int(options.runNumber) | |
int | ndp = 5 |
int | ndptilt = 8 |
bool | fromDB = False |
bool | fromCSV = False |
BSData1 = BeamSpotFinderNt(tag1) | |
BSData2 = BeamSpotFinderNt(tag2) | |
list | varColl = [] |
bool | doOnePlot = True |
runMin | |
runMax | |
lbmin = BS1.lbStart | |
lbmax = BS1.lbEnd | |
BS2_status = options.status | |
statusList | |
BS2Dict = BSData2.getDataCache() | |
int | numNew = 0 |
int | numOld = 0 |
x1 = array('d') | |
ex1 = array('d') | |
x2 = array('d') | |
ex2 = array('d') | |
xd = array('d') | |
exd = array('d') | |
dictionary | y1Dict = {} |
dictionary | ey1Dict = {} |
dictionary | y2Dict = {} |
dictionary | ey2Dict = {} |
dictionary | ydDict = {} |
dictionary | eydDict = {} |
bool | pass1 = False |
run = BS1.run | |
BS2 = BS2Dict[run][lb] | |
bool | pass2 = False |
diff = getattr(BS1, var) - getattr(BS2, var) | |
ediff = max(getattr(BS1, var+'Err'), getattr(BS2, var+'Err')) | |
percdiff = diff / max(getattr(BS1, var), getattr(BS2, var)) | |
sigmaChange = diff/ediff | |
canvas = ROOT.TCanvas('BeamSpotComparison', 'BeamSpotComparison', 600, 500) | |
dictionary | canvases = {} |
dictionary | ratiopad = {} |
dictionary | primarypad = {} |
dictionary | zeroline = {} |
int | ivar = 0 |
list | graphColl = [] |
list | dummyColl = [] |
list | histColl = [] |
gr1 = ROOT.TGraphErrors(len(x1), x1, y1Dict[var], ex1, ey1Dict[var]) | |
gr2 = ROOT.TGraphErrors(len(x2), x2, y2Dict[var], ex2, ey2Dict[var]) | |
grdiff = ROOT.TGraphErrors(len(xd), xd, ydDict[var], exd, eydDict[var]) | |
xmin = min(min(x1), min(x2)) | |
xmax = max(max(x1), max(x2)) | |
ymin = min(min(y1Dict[var]), min(y2Dict[var])) | |
ymax = max(max(y1Dict[var]), max(y2Dict[var])) | |
tuple | h = (ymax-ymin) |
diffmin = min(ydDict[var]) | |
diffmax = max(ydDict[var]) | |
histo = ROOT.TH1F(var, var, 40, diffmin, diffmax) | |
hdummy = ROOT.TH2D('hd'+var, 'hd'+var, 10, xmin, xmax, 10, ymin, ymax) | |
int | primarytextscale = 1./(primarypad[var].GetWh()*primarypad[var].GetAbsHNDC()); |
int | ratiotextscale = 1./(ratiopad[var].GetWh()*ratiopad[var].GetAbsHNDC()) |
minyaxis = hdummy.GetYaxis().GetXmin() | |
maxyaxis = hdummy.GetYaxis().GetXmax() | |
rangeyaxis = abs(minyaxis-maxyaxis) | |
diffymax = grdiff.GetYaxis().GetXmax() | |
diffymin = grdiff.GetYaxis().GetXmin() | |
string | newText = 'New fits: %i' % numNew |
string | oldText = 'Missing fits: %i' %numOld |
basename = options.outtag | |
int | htmlstart = 0 |
string | htmlfilename = basename[htmlstart:-1]+".html" |
html = open(htmlfilename,'w') | |
def plotBeamSpotCompare.drawSummary | ( | var = '' | ) |
Definition at line 563 of file plotBeamSpotCompare.py.
def plotBeamSpotCompare.getVarDef | ( | what, | |
property, | |||
default = '' |
|||
) |
Definition at line 38 of file plotBeamSpotCompare.py.
|
private |
Definition at line 11 of file plotBeamSpotCompare.py.
Definition at line 13 of file plotBeamSpotCompare.py.
|
private |
Definition at line 12 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.action |
Definition at line 50 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.args |
Definition at line 73 of file plotBeamSpotCompare.py.
string plotBeamSpotCompare.basename = options.outtag |
Definition at line 633 of file plotBeamSpotCompare.py.
Definition at line 267 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.BS2_status = options.status |
Definition at line 193 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.BS2Dict = BSData2.getDataCache() |
Definition at line 201 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.BSData1 = BeamSpotFinderNt(tag1) |
Definition at line 122 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.BSData2 = BeamSpotFinderNt(tag2) |
Definition at line 140 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.canvas = ROOT.TCanvas('BeamSpotComparison', 'BeamSpotComparison', 600, 500) |
Definition at line 361 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.canvases = {} |
Definition at line 372 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.default |
Definition at line 50 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.dest |
Definition at line 50 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.diff = getattr(BS1, var) - getattr(BS2, var) |
Definition at line 294 of file plotBeamSpotCompare.py.
Definition at line 410 of file plotBeamSpotCompare.py.
Definition at line 409 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.diffymax = grdiff.GetYaxis().GetXmax() |
Definition at line 519 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.diffymin = grdiff.GetYaxis().GetXmin() |
Definition at line 520 of file plotBeamSpotCompare.py.
bool plotBeamSpotCompare.doOnePlot = True |
Definition at line 158 of file plotBeamSpotCompare.py.
list plotBeamSpotCompare.dummyColl = [] |
Definition at line 385 of file plotBeamSpotCompare.py.
Definition at line 296 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.ex1 = array('d') |
Definition at line 217 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.ex2 = array('d') |
Definition at line 219 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.exd = array('d') |
Definition at line 221 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.ey1Dict = {} |
Definition at line 224 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.ey2Dict = {} |
Definition at line 226 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.eydDict = {} |
Definition at line 228 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.False |
Definition at line 50 of file plotBeamSpotCompare.py.
bool plotBeamSpotCompare.fromCSV = False |
Definition at line 116 of file plotBeamSpotCompare.py.
bool plotBeamSpotCompare.fromDB = False |
Definition at line 115 of file plotBeamSpotCompare.py.
Definition at line 391 of file plotBeamSpotCompare.py.
Definition at line 393 of file plotBeamSpotCompare.py.
list plotBeamSpotCompare.graphColl = [] |
Definition at line 384 of file plotBeamSpotCompare.py.
Definition at line 395 of file plotBeamSpotCompare.py.
Definition at line 403 of file plotBeamSpotCompare.py.
Definition at line 432 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.help |
Definition at line 50 of file plotBeamSpotCompare.py.
list plotBeamSpotCompare.histColl = [] |
Definition at line 386 of file plotBeamSpotCompare.py.
Definition at line 415 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.html = open(htmlfilename,'w') |
Definition at line 655 of file plotBeamSpotCompare.py.
string plotBeamSpotCompare.htmlfilename = basename[htmlstart:-1]+".html" |
Definition at line 654 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.htmlstart = 0 |
Definition at line 651 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.ivar = 0 |
Definition at line 383 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.lbmax = BS1.lbEnd |
Definition at line 189 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.lbmin = BS1.lbStart |
Definition at line 185 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.maxyaxis = hdummy.GetYaxis().GetXmax() |
Definition at line 511 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.minyaxis = hdummy.GetYaxis().GetXmin() |
Definition at line 510 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.ndp = 5 |
Definition at line 104 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.ndptilt = 8 |
Definition at line 105 of file plotBeamSpotCompare.py.
string plotBeamSpotCompare.newText = 'New fits: %i' % numNew |
Definition at line 627 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.numNew = 0 |
Definition at line 213 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.numOld = 0 |
Definition at line 214 of file plotBeamSpotCompare.py.
string plotBeamSpotCompare.oldText = 'Missing fits: %i' %numOld |
Definition at line 628 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.options |
Definition at line 73 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.parser = OptionParser(usage=__usage__, version=__version__) |
Definition at line 49 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.pass1 = False |
Definition at line 231 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.pass2 = False |
Definition at line 269 of file plotBeamSpotCompare.py.
Definition at line 303 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.primarypad = {} |
Definition at line 374 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.primarytextscale = 1./(primarypad[var].GetWh()*primarypad[var].GetAbsHNDC()); |
Definition at line 491 of file plotBeamSpotCompare.py.
Definition at line 512 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.ratiopad = {} |
Definition at line 373 of file plotBeamSpotCompare.py.
Definition at line 498 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.run = BS1.run |
Definition at line 234 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.runMax |
Definition at line 172 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.runMin |
Definition at line 171 of file plotBeamSpotCompare.py.
int plotBeamSpotCompare.runNumber = int(options.runNumber) |
Definition at line 91 of file plotBeamSpotCompare.py.
Definition at line 308 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.statusList |
Definition at line 200 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.tag1 = '' |
Definition at line 75 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.tag2 = '' |
Definition at line 76 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.type |
Definition at line 53 of file plotBeamSpotCompare.py.
list plotBeamSpotCompare.varColl = [] |
Definition at line 156 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.varDef |
Definition at line 25 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.x1 = array('d') |
Definition at line 216 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.x2 = array('d') |
Definition at line 218 of file plotBeamSpotCompare.py.
plotBeamSpotCompare.xd = array('d') |
Definition at line 220 of file plotBeamSpotCompare.py.
Definition at line 399 of file plotBeamSpotCompare.py.
Definition at line 398 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.y1Dict = {} |
Definition at line 223 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.y2Dict = {} |
Definition at line 225 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.ydDict = {} |
Definition at line 227 of file plotBeamSpotCompare.py.
Definition at line 401 of file plotBeamSpotCompare.py.
Definition at line 400 of file plotBeamSpotCompare.py.
dictionary plotBeamSpotCompare.zeroline = {} |
Definition at line 375 of file plotBeamSpotCompare.py.