ATLAS Offline Software
|
Classes | |
class | Beamspot |
class | Event |
Functions | |
def | makeListFromString (s, token=',') |
def | AddText (xmin, ymin, text, size=0.015, font=None) |
def | findBeamspots (file, dir, pattern) |
def | makeFloatFromString (s) |
def | splitBeamspotTreeTitle (title, cutToken="CUT") |
def | getTree (name, file, dir) |
def | makePull (tree, xval='x0', xcov='x0x0', xTrue=0., isCovErr=True, xlow=-8, xhigh=8, xbins=100, doGausFit=False, cuts="") |
def | makeBeamspotPlots (name, beamspots) |
def | makeBeamspotCutPlots (name, points) |
def | makeCutPlotPulls (file, dir, pattern, name) |
Variables | |
string | __author__ = 'James Walder' |
string | __version__ = '$Id$' |
string | __usage__ = '%prog [options] ' |
parser = OptionParser(usage=__usage__, version=__version__) | |
dest | |
default | |
help | |
action | |
False | |
options | |
args | |
list | legends = [] |
list | pdglines = [] |
list | labels = [] |
list | ghists = [] |
list | failed = [] |
list | graphs = [] |
list | canvases = [] |
float | PointSize = 1.6 |
float | MaxHeightFactor = 1.5 |
float | plotTextSize = 0.04 |
def | files = makeListFromString(options.files) |
fii = TFile(files[0]) | |
def | infiles = makeListFromString(options.files) |
open the files More... | |
chain = TChain(options.dir+"/"+options.tree) | |
nEntries = chain.GetEntries() | |
lrun = chain.GetLeaf("event/run") | |
lbcid = chain.GetLeaf("event/bcid") | |
lnEvents = chain.GetLeaf("event/nEvents") | |
llbStart = chain.GetLeaf("event/lumiStart") | |
llumiRange = chain.GetLeaf("event/lumiRange") | |
lstatusWord = chain.GetLeaf("event/statusWord") | |
lx0 = chain.GetLeaf("bs/x0") | |
ly0 = chain.GetLeaf("bs/y0") | |
lz = chain.GetLeaf("bs/z") | |
lsx = chain.GetLeaf("bs/sx") | |
lsy = chain.GetLeaf("bs/sy") | |
lsz = chain.GetLeaf("bs/sz") | |
lax = chain.GetLeaf("bs/ax") | |
lay = chain.GetLeaf("bs/ay") | |
lrhoxy = chain.GetLeaf("bs/rhoxy") | |
lk = chain.GetLeaf("bs/k") | |
lxc = chain.GetLeaf("bsCentroid/xc") | |
lyc = chain.GetLeaf("bsCentroid/yc") | |
lCovx0 = chain.GetLeaf("bsCov/x0x0") | |
lCovy0 = chain.GetLeaf("bsCov/y0y0") | |
lCovz = chain.GetLeaf("bsCov/zz") | |
lCovsx = chain.GetLeaf("bsCov/sxsx") | |
lCovsy = chain.GetLeaf("bsCov/sysy") | |
lCovsz = chain.GetLeaf("bsCov/szsz") | |
lCovax = chain.GetLeaf("bsCov/axax") | |
lCovay = chain.GetLeaf("bsCov/ayay") | |
lCovrhoxy = chain.GetLeaf("bsCov/rhoxyrhoxy") | |
lCovk = chain.GetLeaf("bsCov/kk") | |
lCovxc = chain.GetLeaf("bsCovCentroid/xcxc") | |
lCovyc = chain.GetLeaf("bsCovCentroid/ycyc") | |
dictionary | bcidEvents = {} |
format of data More... | |
int | count = 0 |
run = lrun.GetValue() | |
bcid = lbcid.GetValue() | |
nEvents = lnEvents.GetValue() | |
lbStart = llbStart.GetValue() | |
lumiRange = llumiRange.GetValue() | |
statusWord = lstatusWord.GetValue() | |
evt = Event() | |
bs = Beamspot() | |
x0 | |
y0 | |
xc | |
yc | |
z | |
sx | |
sy | |
sz | |
ax | |
ay | |
k | |
rhoxy | |
Ek | |
Ex0 | |
Ey0 | |
Exc | |
Eyc | |
Ez | |
Esx | |
Esy | |
Esz | |
Eax | |
Eay | |
Erhoxy | |
dictionary | plots = {} |
cx = TCanvas("cx","",800,600) | |
v[6].Draw("ap") c.cd(11) v[7].Draw("ap") canvases.append(c) More... | |
cy = TCanvas("cy","",800,600) | |
cz = TCanvas("cz","",800,600) | |
csx = TCanvas("csx","",800,600) | |
csy = TCanvas("csy","",800,600) | |
csz = TCanvas("csz","",800,600) | |
cax = TCanvas("cax","",800,600) | |
cay = TCanvas("cay","",800,600) | |
ck = TCanvas("ck","",800,600) | |
crhoxy = TCanvas("crhoxy","",800,600) | |
cnEvents = TCanvas("cnEvents","",800,600) | |
legx = TLegend(0.75,0.65,0.92,0.94) | |
legy = TLegend(0.75,0.65,0.92,0.94) | |
legz = TLegend(0.75,0.65,0.92,0.94) | |
legsx = TLegend(0.75,0.65,0.92,0.94) | |
legsy = TLegend(0.75,0.65,0.92,0.94) | |
legsz = TLegend(0.75,0.65,0.92,0.94) | |
legax = TLegend(0.75,0.65,0.92,0.94) | |
legay = TLegend(0.75,0.65,0.92,0.94) | |
legk = TLegend(0.75,0.65,0.92,0.94) | |
legrhoxy = TLegend(0.75,0.65,0.92,0.94) | |
legnEvents = TLegend(0.75,0.65,0.92,0.94) | |
list | legs = [ legx,legy ,legz ,legsx,legsy,legsz,legax,legay,legk ,legrhoxy,legnEvents] |
int | c = 0 |
int | m = 0 |
bool | first = True |
list | colours = [ EColor.kRed+1, EColor.kBlue+1, EColor.kGreen-8, EColor.kYellow+4] |
list | markers = [20,25,22,27,23,28,30,21] |
string | dr = "apl" |
list | x = [v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10]] |
a = i.GetYaxis() | |
min = a.GetXmin() | |
max = a.GetXmax() | |
float | fontSize = 0.1 |
s = raw_input('--> ') | |
def beamspotPlotBcids.AddText | ( | xmin, | |
ymin, | |||
text, | |||
size = 0.015 , |
|||
font = None |
|||
) |
Definition at line 19 of file beamspotPlotBcids.py.
def beamspotPlotBcids.findBeamspots | ( | file, | |
dir, | |||
pattern | |||
) |
Definition at line 135 of file beamspotPlotBcids.py.
def beamspotPlotBcids.getTree | ( | name, | |
file, | |||
dir | |||
) |
Definition at line 180 of file beamspotPlotBcids.py.
def beamspotPlotBcids.makeBeamspotCutPlots | ( | name, | |
points | |||
) |
Definition at line 305 of file beamspotPlotBcids.py.
def beamspotPlotBcids.makeBeamspotPlots | ( | name, | |
beamspots | |||
) |
Definition at line 225 of file beamspotPlotBcids.py.
def beamspotPlotBcids.makeCutPlotPulls | ( | file, | |
dir, | |||
pattern, | |||
name | |||
) |
Definition at line 409 of file beamspotPlotBcids.py.
def beamspotPlotBcids.makeFloatFromString | ( | s | ) |
Definition at line 158 of file beamspotPlotBcids.py.
def beamspotPlotBcids.makeListFromString | ( | s, | |
token = ',' |
|||
) |
Definition at line 14 of file beamspotPlotBcids.py.
def beamspotPlotBcids.makePull | ( | tree, | |
xval = 'x0' , |
|||
xcov = 'x0x0' , |
|||
xTrue = 0. , |
|||
isCovErr = True , |
|||
xlow = -8 , |
|||
xhigh = 8 , |
|||
xbins = 100 , |
|||
doGausFit = False , |
|||
cuts = "" |
|||
) |
Definition at line 186 of file beamspotPlotBcids.py.
def beamspotPlotBcids.splitBeamspotTreeTitle | ( | title, | |
cutToken = "CUT" |
|||
) |
Definition at line 169 of file beamspotPlotBcids.py.
|
private |
Definition at line 10 of file beamspotPlotBcids.py.
|
private |
Definition at line 12 of file beamspotPlotBcids.py.
|
private |
Definition at line 11 of file beamspotPlotBcids.py.
beamspotPlotBcids.a = i.GetYaxis() |
Definition at line 622 of file beamspotPlotBcids.py.
beamspotPlotBcids.action |
Definition at line 101 of file beamspotPlotBcids.py.
beamspotPlotBcids.args |
Definition at line 104 of file beamspotPlotBcids.py.
beamspotPlotBcids.ax |
Definition at line 522 of file beamspotPlotBcids.py.
beamspotPlotBcids.ay |
Definition at line 523 of file beamspotPlotBcids.py.
beamspotPlotBcids.bcid = lbcid.GetValue() |
Definition at line 491 of file beamspotPlotBcids.py.
dictionary beamspotPlotBcids.bcidEvents = {} |
format of data
Definition at line 484 of file beamspotPlotBcids.py.
beamspotPlotBcids.bs = Beamspot() |
Definition at line 513 of file beamspotPlotBcids.py.
int beamspotPlotBcids.c = 0 |
Definition at line 611 of file beamspotPlotBcids.py.
list beamspotPlotBcids.canvases = [] |
Definition at line 125 of file beamspotPlotBcids.py.
beamspotPlotBcids.cax = TCanvas("cax","",800,600) |
Definition at line 587 of file beamspotPlotBcids.py.
beamspotPlotBcids.cay = TCanvas("cay","",800,600) |
Definition at line 588 of file beamspotPlotBcids.py.
beamspotPlotBcids.chain = TChain(options.dir+"/"+options.tree) |
Definition at line 442 of file beamspotPlotBcids.py.
beamspotPlotBcids.ck = TCanvas("ck","",800,600) |
Definition at line 589 of file beamspotPlotBcids.py.
beamspotPlotBcids.cnEvents = TCanvas("cnEvents","",800,600) |
Definition at line 591 of file beamspotPlotBcids.py.
list beamspotPlotBcids.colours = [ EColor.kRed+1, EColor.kBlue+1, EColor.kGreen-8, EColor.kYellow+4] |
Definition at line 614 of file beamspotPlotBcids.py.
int beamspotPlotBcids.count = 0 |
Definition at line 486 of file beamspotPlotBcids.py.
beamspotPlotBcids.crhoxy = TCanvas("crhoxy","",800,600) |
Definition at line 590 of file beamspotPlotBcids.py.
beamspotPlotBcids.csx = TCanvas("csx","",800,600) |
Definition at line 584 of file beamspotPlotBcids.py.
beamspotPlotBcids.csy = TCanvas("csy","",800,600) |
Definition at line 585 of file beamspotPlotBcids.py.
beamspotPlotBcids.csz = TCanvas("csz","",800,600) |
Definition at line 586 of file beamspotPlotBcids.py.
beamspotPlotBcids.cx = TCanvas("cx","",800,600) |
v[6].Draw("ap") c.cd(11) v[7].Draw("ap") canvases.append(c)
Definition at line 581 of file beamspotPlotBcids.py.
beamspotPlotBcids.cy = TCanvas("cy","",800,600) |
Definition at line 582 of file beamspotPlotBcids.py.
beamspotPlotBcids.cz = TCanvas("cz","",800,600) |
Definition at line 583 of file beamspotPlotBcids.py.
beamspotPlotBcids.default |
Definition at line 99 of file beamspotPlotBcids.py.
beamspotPlotBcids.dest |
Definition at line 99 of file beamspotPlotBcids.py.
string beamspotPlotBcids.dr = "apl" |
Definition at line 618 of file beamspotPlotBcids.py.
beamspotPlotBcids.Eax |
Definition at line 536 of file beamspotPlotBcids.py.
beamspotPlotBcids.Eay |
Definition at line 537 of file beamspotPlotBcids.py.
beamspotPlotBcids.Ek |
Definition at line 527 of file beamspotPlotBcids.py.
beamspotPlotBcids.Erhoxy |
Definition at line 538 of file beamspotPlotBcids.py.
beamspotPlotBcids.Esx |
Definition at line 533 of file beamspotPlotBcids.py.
beamspotPlotBcids.Esy |
Definition at line 534 of file beamspotPlotBcids.py.
beamspotPlotBcids.Esz |
Definition at line 535 of file beamspotPlotBcids.py.
beamspotPlotBcids.evt = Event() |
Definition at line 505 of file beamspotPlotBcids.py.
beamspotPlotBcids.Ex0 |
Definition at line 528 of file beamspotPlotBcids.py.
beamspotPlotBcids.Exc |
Definition at line 530 of file beamspotPlotBcids.py.
beamspotPlotBcids.Ey0 |
Definition at line 529 of file beamspotPlotBcids.py.
beamspotPlotBcids.Eyc |
Definition at line 531 of file beamspotPlotBcids.py.
beamspotPlotBcids.Ez |
Definition at line 532 of file beamspotPlotBcids.py.
list beamspotPlotBcids.failed = [] |
Definition at line 123 of file beamspotPlotBcids.py.
beamspotPlotBcids.False |
Definition at line 101 of file beamspotPlotBcids.py.
beamspotPlotBcids.fii = TFile(files[0]) |
Definition at line 217 of file beamspotPlotBcids.py.
def beamspotPlotBcids.files = makeListFromString(options.files) |
Definition at line 215 of file beamspotPlotBcids.py.
bool beamspotPlotBcids.first = True |
Definition at line 613 of file beamspotPlotBcids.py.
float beamspotPlotBcids.fontSize = 0.1 |
Definition at line 683 of file beamspotPlotBcids.py.
list beamspotPlotBcids.ghists = [] |
Definition at line 122 of file beamspotPlotBcids.py.
list beamspotPlotBcids.graphs = [] |
Definition at line 124 of file beamspotPlotBcids.py.
beamspotPlotBcids.help |
Definition at line 99 of file beamspotPlotBcids.py.
def beamspotPlotBcids.infiles = makeListFromString(options.files) |
open the files
Definition at line 441 of file beamspotPlotBcids.py.
beamspotPlotBcids.k |
Definition at line 524 of file beamspotPlotBcids.py.
list beamspotPlotBcids.labels = [] |
Definition at line 121 of file beamspotPlotBcids.py.
beamspotPlotBcids.lax = chain.GetLeaf("bs/ax") |
Definition at line 463 of file beamspotPlotBcids.py.
beamspotPlotBcids.lay = chain.GetLeaf("bs/ay") |
Definition at line 464 of file beamspotPlotBcids.py.
beamspotPlotBcids.lbcid = chain.GetLeaf("event/bcid") |
Definition at line 451 of file beamspotPlotBcids.py.
beamspotPlotBcids.lbStart = llbStart.GetValue() |
Definition at line 493 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovax = chain.GetLeaf("bsCov/axax") |
Definition at line 476 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovay = chain.GetLeaf("bsCov/ayay") |
Definition at line 477 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovk = chain.GetLeaf("bsCov/kk") |
Definition at line 479 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovrhoxy = chain.GetLeaf("bsCov/rhoxyrhoxy") |
Definition at line 478 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovsx = chain.GetLeaf("bsCov/sxsx") |
Definition at line 473 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovsy = chain.GetLeaf("bsCov/sysy") |
Definition at line 474 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovsz = chain.GetLeaf("bsCov/szsz") |
Definition at line 475 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovx0 = chain.GetLeaf("bsCov/x0x0") |
Definition at line 470 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovxc = chain.GetLeaf("bsCovCentroid/xcxc") |
Definition at line 480 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovy0 = chain.GetLeaf("bsCov/y0y0") |
Definition at line 471 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovyc = chain.GetLeaf("bsCovCentroid/ycyc") |
Definition at line 481 of file beamspotPlotBcids.py.
beamspotPlotBcids.lCovz = chain.GetLeaf("bsCov/zz") |
Definition at line 472 of file beamspotPlotBcids.py.
beamspotPlotBcids.legax = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 599 of file beamspotPlotBcids.py.
beamspotPlotBcids.legay = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 600 of file beamspotPlotBcids.py.
list beamspotPlotBcids.legends = [] |
Definition at line 119 of file beamspotPlotBcids.py.
beamspotPlotBcids.legk = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 601 of file beamspotPlotBcids.py.
beamspotPlotBcids.legnEvents = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 603 of file beamspotPlotBcids.py.
beamspotPlotBcids.legrhoxy = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 602 of file beamspotPlotBcids.py.
list beamspotPlotBcids.legs = [ legx,legy ,legz ,legsx,legsy,legsz,legax,legay,legk ,legrhoxy,legnEvents] |
Definition at line 604 of file beamspotPlotBcids.py.
beamspotPlotBcids.legsx = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 596 of file beamspotPlotBcids.py.
beamspotPlotBcids.legsy = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 597 of file beamspotPlotBcids.py.
beamspotPlotBcids.legsz = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 598 of file beamspotPlotBcids.py.
beamspotPlotBcids.legx = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 593 of file beamspotPlotBcids.py.
beamspotPlotBcids.legy = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 594 of file beamspotPlotBcids.py.
beamspotPlotBcids.legz = TLegend(0.75,0.65,0.92,0.94) |
Definition at line 595 of file beamspotPlotBcids.py.
beamspotPlotBcids.lk = chain.GetLeaf("bs/k") |
Definition at line 466 of file beamspotPlotBcids.py.
beamspotPlotBcids.llbStart = chain.GetLeaf("event/lumiStart") |
Definition at line 453 of file beamspotPlotBcids.py.
beamspotPlotBcids.llumiRange = chain.GetLeaf("event/lumiRange") |
Definition at line 454 of file beamspotPlotBcids.py.
beamspotPlotBcids.lnEvents = chain.GetLeaf("event/nEvents") |
Definition at line 452 of file beamspotPlotBcids.py.
beamspotPlotBcids.lrhoxy = chain.GetLeaf("bs/rhoxy") |
Definition at line 465 of file beamspotPlotBcids.py.
beamspotPlotBcids.lrun = chain.GetLeaf("event/run") |
Definition at line 450 of file beamspotPlotBcids.py.
beamspotPlotBcids.lstatusWord = chain.GetLeaf("event/statusWord") |
Definition at line 455 of file beamspotPlotBcids.py.
beamspotPlotBcids.lsx = chain.GetLeaf("bs/sx") |
Definition at line 460 of file beamspotPlotBcids.py.
beamspotPlotBcids.lsy = chain.GetLeaf("bs/sy") |
Definition at line 461 of file beamspotPlotBcids.py.
beamspotPlotBcids.lsz = chain.GetLeaf("bs/sz") |
Definition at line 462 of file beamspotPlotBcids.py.
beamspotPlotBcids.lumiRange = llumiRange.GetValue() |
Definition at line 494 of file beamspotPlotBcids.py.
beamspotPlotBcids.lx0 = chain.GetLeaf("bs/x0") |
Definition at line 457 of file beamspotPlotBcids.py.
beamspotPlotBcids.lxc = chain.GetLeaf("bsCentroid/xc") |
Definition at line 467 of file beamspotPlotBcids.py.
beamspotPlotBcids.ly0 = chain.GetLeaf("bs/y0") |
Definition at line 458 of file beamspotPlotBcids.py.
beamspotPlotBcids.lyc = chain.GetLeaf("bsCentroid/yc") |
Definition at line 468 of file beamspotPlotBcids.py.
beamspotPlotBcids.lz = chain.GetLeaf("bs/z") |
Definition at line 459 of file beamspotPlotBcids.py.
int beamspotPlotBcids.m = 0 |
Definition at line 612 of file beamspotPlotBcids.py.
list beamspotPlotBcids.markers = [20,25,22,27,23,28,30,21] |
Definition at line 615 of file beamspotPlotBcids.py.
beamspotPlotBcids.max = a.GetXmax() |
Definition at line 624 of file beamspotPlotBcids.py.
float beamspotPlotBcids.MaxHeightFactor = 1.5 |
Definition at line 128 of file beamspotPlotBcids.py.
beamspotPlotBcids.min = a.GetXmin() |
Definition at line 623 of file beamspotPlotBcids.py.
beamspotPlotBcids.nEntries = chain.GetEntries() |
Definition at line 448 of file beamspotPlotBcids.py.
beamspotPlotBcids.nEvents = lnEvents.GetValue() |
Definition at line 492 of file beamspotPlotBcids.py.
beamspotPlotBcids.options |
Definition at line 104 of file beamspotPlotBcids.py.
beamspotPlotBcids.parser = OptionParser(usage=__usage__, version=__version__) |
Definition at line 98 of file beamspotPlotBcids.py.
list beamspotPlotBcids.pdglines = [] |
Definition at line 120 of file beamspotPlotBcids.py.
dictionary beamspotPlotBcids.plots = {} |
Definition at line 550 of file beamspotPlotBcids.py.
float beamspotPlotBcids.plotTextSize = 0.04 |
Definition at line 130 of file beamspotPlotBcids.py.
float beamspotPlotBcids.PointSize = 1.6 |
Definition at line 127 of file beamspotPlotBcids.py.
beamspotPlotBcids.rhoxy |
Definition at line 525 of file beamspotPlotBcids.py.
beamspotPlotBcids.run = lrun.GetValue() |
Definition at line 490 of file beamspotPlotBcids.py.
beamspotPlotBcids.s = raw_input('--> ') |
Definition at line 731 of file beamspotPlotBcids.py.
beamspotPlotBcids.statusWord = lstatusWord.GetValue() |
Definition at line 495 of file beamspotPlotBcids.py.
beamspotPlotBcids.sx |
Definition at line 519 of file beamspotPlotBcids.py.
beamspotPlotBcids.sy |
Definition at line 520 of file beamspotPlotBcids.py.
beamspotPlotBcids.sz |
Definition at line 521 of file beamspotPlotBcids.py.
list beamspotPlotBcids.x = [v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10]] |
Definition at line 620 of file beamspotPlotBcids.py.
beamspotPlotBcids.x0 |
Definition at line 514 of file beamspotPlotBcids.py.
beamspotPlotBcids.xc |
Definition at line 516 of file beamspotPlotBcids.py.
beamspotPlotBcids.y0 |
Definition at line 515 of file beamspotPlotBcids.py.
beamspotPlotBcids.yc |
Definition at line 517 of file beamspotPlotBcids.py.
beamspotPlotBcids.z |
Definition at line 518 of file beamspotPlotBcids.py.