ATLAS Offline Software
|
Variables | |
string | __author__ = 'Peter Loscutoff' |
string | __version__ = '$Id $' |
string | __usage__ = 'plotBeamSpotVxVal.py [options] bs.nt.root split.nt.root' |
parser = OptionParser(usage=__usage__, version=__version__) | |
dest | |
action | |
default | |
False | |
help | |
options | |
args | |
canvas = TCanvas("PlotBsVxVal","PlotBsVxVal",1000,500) | |
bsfile = TFile(args[0]) | |
splitfile = TFile(args[1]) | |
dictionary | subplotSVs = {} |
int | fitbins = 3001 |
int | plotrange = int(options.plotrange) + 1 |
int | outlierCut = 20 |
plotSV = TH1D("p(s)SV","Pull vs # Tracks",plotrange*2,-.25,plotrange-.25) | |
string | nameSV = "plotSV%s" % i |
tree = gDirectory.Get("splitVertex") | |
entries = tree.GetEntriesFast() | |
noprint = tree.GetEntry(entry) | |
tuple | binSV = (tree.tracks_odd+tree.tracks_even) |
dictionary | fitsigma = subplotSVs[nameSV].GetRMS() |
tuple | fserror = (subplotSVs[nameSV].GetRMS())/sqrt(subplotSVs[nameSV].Integral()) |
int | bin = i+1 |
legend = TLegend(.60,.75,.92,.92) | |
dictionary | subplots = {} |
dictionary | bstable = {} |
list | splitWeight = [] |
list | fullWeight = [] |
lumiedge = array('d') | |
int | lumibins = 0 |
int | lumiend = 0 |
bstree = gDirectory.Get("BeamSpotNt") | |
lumibegin = bstree.lbStart | |
string | name = str(lumibegin) + "to" + str(lumiend) |
plotX = TH1D("p(s)X","k vs Lumi Block",lumibins,lumiedge) | |
plotBS = TH1D("p(s)bs","k vs Lumi Block",lumibins,lumiedge) | |
sptree = gDirectory.Get("splitVertex") | |
splitBin = int(.5*(sptree.tracks_odd + sptree.tracks_even) ) | |
vxtree = gDirectory.Get('Vertices') | |
fullBin = vxtree.nTracks | |
lumi = sptree.lumi | |
dictionary | bs_x0 = bstable[lumi]["x0"] |
dictionary | bs_y0 = bstable[lumi]["y0"] |
dictionary | bs_a = bstable[lumi]["ax"] |
dictionary | bs_b = bstable[lumi]["ay"] |
dictionary | bs_z = bstable[lumi]["z"] |
dictionary | bs_sx = bstable[lumi]["sx"] |
dictionary | bs_sy = bstable[lumi]["sy"] |
dictionary | bs_sz = bstable[lumi]["sz"] |
dictionary | bs_rho = bstable[lumi]["rhoxy"] |
range = k.split("to") | |
cov = array('d') | |
covmat = TMatrixDSym(2) | |
int | min = .8 |
float | max = 1.2 |
int | sumw = 0 |
int | sumwx = 0 |
int | midpoint = int(name.split("to")[0])+.5 |
globalbin = plotBS.FindBin(midpoint) | |
int | vsavg = sumwx/sumw |
float | vserr = 1.0/sumw |
int | bsavg = sumwx/sumw |
float | bserr = 1.0/sumw |
|
private |
Definition at line 10 of file plotBeamSpotVxVal.py.
|
private |
Definition at line 12 of file plotBeamSpotVxVal.py.
|
private |
Definition at line 11 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.action |
Definition at line 21 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.args |
Definition at line 27 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.bin = i+1 |
Definition at line 83 of file plotBeamSpotVxVal.py.
tuple plotBeamSpotVxVal.binSV = (tree.tracks_odd+tree.tracks_even) |
Definition at line 73 of file plotBeamSpotVxVal.py.
Definition at line 185 of file plotBeamSpotVxVal.py.
Definition at line 186 of file plotBeamSpotVxVal.py.
Definition at line 191 of file plotBeamSpotVxVal.py.
Definition at line 188 of file plotBeamSpotVxVal.py.
Definition at line 189 of file plotBeamSpotVxVal.py.
Definition at line 190 of file plotBeamSpotVxVal.py.
Definition at line 183 of file plotBeamSpotVxVal.py.
Definition at line 184 of file plotBeamSpotVxVal.py.
Definition at line 187 of file plotBeamSpotVxVal.py.
Definition at line 282 of file plotBeamSpotVxVal.py.
float plotBeamSpotVxVal.bserr = 1.0/sumw |
Definition at line 283 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.bsfile = TFile(args[0]) |
Definition at line 47 of file plotBeamSpotVxVal.py.
dictionary plotBeamSpotVxVal.bstable = {} |
Definition at line 107 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.bstree = gDirectory.Get("BeamSpotNt") |
Definition at line 118 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.canvas = TCanvas("PlotBsVxVal","PlotBsVxVal",1000,500) |
Definition at line 43 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.cov = array('d') |
Definition at line 201 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.covmat = TMatrixDSym(2) |
Definition at line 206 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.default |
Definition at line 21 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.dest |
Definition at line 21 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.entries = tree.GetEntriesFast() |
Definition at line 70 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.False |
Definition at line 21 of file plotBeamSpotVxVal.py.
int plotBeamSpotVxVal.fitbins = 3001 |
Definition at line 59 of file plotBeamSpotVxVal.py.
dictionary plotBeamSpotVxVal.fitsigma = subplotSVs[nameSV].GetRMS() |
Definition at line 81 of file plotBeamSpotVxVal.py.
tuple plotBeamSpotVxVal.fserror = (subplotSVs[nameSV].GetRMS())/sqrt(subplotSVs[nameSV].Integral()) |
Definition at line 82 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.fullBin = vxtree.nTracks |
Definition at line 168 of file plotBeamSpotVxVal.py.
list plotBeamSpotVxVal.fullWeight = [] |
Definition at line 110 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.globalbin = plotBS.FindBin(midpoint) |
Definition at line 247 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.help |
Definition at line 21 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.legend = TLegend(.60,.75,.92,.92) |
Definition at line 98 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.lumi = sptree.lumi |
Definition at line 181 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.lumibegin = bstree.lbStart |
Definition at line 125 of file plotBeamSpotVxVal.py.
int plotBeamSpotVxVal.lumibins = 0 |
Definition at line 113 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.lumiedge = array('d') |
Definition at line 112 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.lumiend = 0 |
Definition at line 114 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.max = 1.2 |
Definition at line 234 of file plotBeamSpotVxVal.py.
int plotBeamSpotVxVal.midpoint = int(name.split("to")[0])+.5 |
Definition at line 241 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.min = .8 |
Definition at line 233 of file plotBeamSpotVxVal.py.
Definition at line 128 of file plotBeamSpotVxVal.py.
string plotBeamSpotVxVal.nameSV = "plotSV%s" % i |
Definition at line 65 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.noprint = tree.GetEntry(entry) |
Definition at line 72 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.options |
Definition at line 27 of file plotBeamSpotVxVal.py.
int plotBeamSpotVxVal.outlierCut = 20 |
Definition at line 61 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.parser = OptionParser(usage=__usage__, version=__version__) |
Definition at line 20 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.plotBS = TH1D("p(s)bs","k vs Lumi Block",lumibins,lumiedge) |
Definition at line 145 of file plotBeamSpotVxVal.py.
int plotBeamSpotVxVal.plotrange = int(options.plotrange) + 1 |
Definition at line 60 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.plotSV = TH1D("p(s)SV","Pull vs # Tracks",plotrange*2,-.25,plotrange-.25) |
Definition at line 62 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.plotX = TH1D("p(s)X","k vs Lumi Block",lumibins,lumiedge) |
Definition at line 144 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.range = k.split("to") |
Definition at line 195 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.splitBin = int(.5*(sptree.tracks_odd + sptree.tracks_even) ) |
Definition at line 156 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.splitfile = TFile(args[1]) |
Definition at line 48 of file plotBeamSpotVxVal.py.
list plotBeamSpotVxVal.splitWeight = [] |
Definition at line 109 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.sptree = gDirectory.Get("splitVertex") |
Definition at line 152 of file plotBeamSpotVxVal.py.
dictionary plotBeamSpotVxVal.subplots = {} |
Definition at line 105 of file plotBeamSpotVxVal.py.
dictionary plotBeamSpotVxVal.subplotSVs = {} |
Definition at line 56 of file plotBeamSpotVxVal.py.
int plotBeamSpotVxVal.sumw = 0 |
Definition at line 236 of file plotBeamSpotVxVal.py.
int plotBeamSpotVxVal.sumwx = 0 |
Definition at line 237 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.tree = gDirectory.Get("splitVertex") |
Definition at line 69 of file plotBeamSpotVxVal.py.
Definition at line 254 of file plotBeamSpotVxVal.py.
float plotBeamSpotVxVal.vserr = 1.0/sumw |
Definition at line 255 of file plotBeamSpotVxVal.py.
plotBeamSpotVxVal.vxtree = gDirectory.Get('Vertices') |
Definition at line 162 of file plotBeamSpotVxVal.py.